/* Test Arrays */ import java.util.Scanner; public class Array3 { public static void main(String[] args) { Scanner kb = new Scanner(System.in); String[] colleges = new String[6]; for(int index=0; index<6; index++) colleges[index] = kb.nextLine(); //Q: make the last one as UVA? colleges[5] = "UVA"; //Q: out the first one? System.out.println("1st one: " + colleges[0]); // out all for(int index=0; index<6; index ++) System.out.print(colleges[index] + " "); System.out.println("\n\n\n\n\nByebye.\n\n\n"); } }