I have to make a program where I calculate things and then print it all in one line. But this output also includes max. 5 stars (*****; stars are supposed to be outlined right). So I give my inputs for the calculation, the amount of stars I want and this is for example supposed to be the result:
(50, ***, 60, 20)
for example int a = 5 String s = "*"
Can I do
a * s as result (*****)
Am I supposed to use a for loop here, is there a way to multiply an integer with a string and print it on one line?