I'm assigned to write a program which prints (x) amount of "*" in a row.
I tried using the "*".repeat(amount) command, but the software wont accept it as a solution. Also tried using for and while -loops, but I can't figure how to get the *'s be on the same row.
public class Tulostelua {
public static void main(String[] args) {
printStarts(3);
}
public static void printStart(int amount) {
}
}