CSC152 2006S, Class 26: Arrays and Vectors Admin: * Homework: * Do the vectors lab on your own. (Nothing to submit.) * Read all about (a) linear structures; (b) stacks. * Request: Play a silly game. Overview: * Basics of vectors and arrays. * Lab. * Need ways to organize and store data * A File * The array (like Vectors in Scheme) * Array: Fixed-size collection of data Provides three main operations // Not with this syntax * Get(int i) * Put(int i, T value) * size() * In Java, fairly simple, but ugly * Because ugly and non-expandable, Java also provides Vectors public static void printGrades(PrintWriter pen, String[] names, int[] grades) { } // printGrades(PrintWriter, String[], int[])