import java.util.Scanner; public class cou { public static void main( String[] args ) { Scanner keyboard = new Scanner(System.in); int time; System.out.println( "Type in a message, and I'll display it ten times." ); System.out.print( "Message: " ); String message = keyboard.nextLine(); System.out.println("How many times u wanna see it?"); time = keyboard.nextInt(); int n = 0; while ( n < time ) { System.out.println( (n*10+10) + ". " + message ); n++; } } }