import java.util.Scanner;
public class myLine {
public static void main(String[] args) {
String CurrentLine = new String();
int length =0;
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
if (CurrentLine.charAt(0) == 'l') {
return '*' x times;
}
}
}
The last line is just me taking note of what I want to do. If the user puts in a number for x, how do I return the * character that many times?