Hi everyone, just started learning Java and I realized a very minor problem.
I am looking to multiply an asterix "*" by a number so that it is longer.
String num = ""; num = "*" * 4; System.out.println (num);
But instead the compiler says that "the * operator cannot be applied to java.lang.String, int. Please help me get this right.