Representations of direct products of finite groups