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.
Something like:
Code:
String num = "";
num = "*" * 4;
System.out.println (num);
Sould output:
****
But instead the compiler says that "the * operator cannot be applied to java.lang.String, int. Please help me get this right.