// first nested for loop public class Nested1 { public static void main( String[] args ) { int rows, columns; for (rows=1; rows<=5; rows++) { for (columns=1; columns<=10; columns++) { System.out.print("*"); } System.out.print("\n"); } System.exit( 0 ); } // end main } // end of program