// Emperors.java Copyright (c) 2005 Kari Laitinen // 2005-04-17 File created. // 2005-04-17 Last modification. import java.util.* ; class Emperors { public static void main( String[] not_in_use ) { String[] array_of_emperors = new String[ 10 ] ; array_of_emperors[ 0 ] = "Napoleon Bonaparte" ; String first_emperor_of_rome = "Augustus (Octavianus)" ; String last_emperor_of_russia = "Nicholas II" ; array_of_emperors[ 1 ] = first_emperor_of_rome ; array_of_emperors[ 2 ] = last_emperor_of_russia ; for ( int emperor_index = 0 ; emperor_index < array_of_emperors.length ; emperor_index ++ ) { System.out.print( "\n " + emperor_index + ": " + array_of_emperors[ emperor_index ] ) ; } String[] names_of_famous_queens = { "Isabella I", "Elizabeth I", "Catherine II the Great", "Victoria", "Elizabeth II" } ; for ( int queen_index = 0 ; queen_index < names_of_famous_queens.length ; queen_index ++ ) { System.out.print( "\n " + queen_index + ": " + names_of_famous_queens[ queen_index ] ) ; } } }