This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: 15-121 FALL 2009 [CORTINA/REID-MILLER]LAB 1Download and open a copy of the PhoneDirectory project discussed in lecture: PhoneDirectory.zipIn this program, the PhoneDirectoryclass contains an array to hold the directory entries and an integer to indicate how many cells of the array contain directory entries. The directory entries are stored sequentially in the array starting from position 0 with no empty cells. So if there are 6 entries in the array, they are stored in position 0 through 5. Read through this class to understand how it works.To run the program, execute the PDApplication class. You will need to use command line arguments. In Eclipse, click on that class in the Package Explorer and then choose Run > Open Run Dialog. Select the first icon (New launch configuration), and in the Arguments tab, enter phonedata.txt Gfor the graphic version or phonedata.txt Cfor the console version....
View Full Document
- Spring '09
- phone numbers, ArrayBasePD class, java PDApplication phonedata.txt, array contain directory