Here is the Lab information
Create a program that keeps track of the following information input by the user:
First Name, Last Name, Phone Number, Age
Now - let's store this in a multidimensional array that will hold 10 of these contacts. So our multidimensional array will need to be 10 rows and 4 columns.
You should be able to add, sort (by any column you chose) and remove contacts in the array.
Questions
I can code all the information provided that there are 1D arrays. But my Professor wants me to do them in 2D which is a little of challenge for me. My question is if my I do a 2D array will that be in conflict with m phone number and Age column?
--- Update ---
I was going to start with this.
--- Update ---
Don't know why i can not edit my post but here is the beginning code.
Scanner scan = new Scanner(System.in); String[][] demographic = new String[10][4]; for(int row = 0; row < demographic.length; row++) { for(int column = 0; column < demographic[row].length; column++) { demographic[row][column] = " "; System.out.print( demographic[row][column] ); } System.out.println(); }