/* * Arrays.java * * Created on January 28, 2007, 9:59 PM * * To change this template, choose Tools | Template Manager * and open the template in the editor. */ /** * * @author aharris */ public class Arrays { public static void main(String args[]){ String[] games = { "Super Mario Bros.", "Legend of Zelda", "Tetris", "Civilization II", "Super Mario 64", "Pirates!", "StarCraft", "Street Fighter II", "Star Wars TIE Fighter", "Super Metroid" }; System.out.println(games[3]); for (int i = 0; i < games.length; i++){ System.out.printf("%d) %s\n", i+1, games[i]); } } // end main /** Creates a new instance of Arrays */ public Arrays() { } }