int b1 = 0; // This is supposed to be a running total
System.out.println("*" * (b1));
I know this is wrong but I was wonderingwhether there was a way to do such calculation`
I am trying to multiply the * with a variable (b1) so that it prints * depending on the variable. As the variable increases the amount of * should increase.