title: How to finish this Java classes assignment?
body: <p>Here is my assignment:</p>
  
  <blockquote>
    <ol>
    <li>Create a class that contains an address book entry and name it AddressBook. The table below describes the information that an address book entry has. Name, Address, Mobile Number, Email Address.</li>
    </ol>
  </blockquote>
  
  <p>Here is my code, I am not sure if it's correct:</p>
  
  <pre><code>public class AddressBook {
     private String name;
     private String address;
     private int mobilenumber;
     private String emailaddress;
  
     public AddressBook(){}
  
     public AddressBook (String name, String address, 
                         int mobilenumber, String emailaddress){
         this.name = name;
         this.address = address;
         this.mobilenumber = mobilenumber;
         this.emailaddress = emailaddress;
     }
  
      public String getName(){ 
          return name;
      }
      public void setName(String name){ 
          this.name = name;
      }
  
      public String getAddress(){ 
          return address;
      }
      public void setAddress(String address){ 
          this.address = address;
      }
  
      public int getMobileNumber(){ 
          return mobilenumber;
      }
      public void setMobileNumber(int mobilenumber){
          this.mobilenumber = mobilenumber;}
  
      public String getEmailAddress(){
          return emailaddress;
      }
      public void setEmailAddress(String emailaddress){ 
          this.emailaddress = emailaddress;
      }
  
       public String toString(){
           return "Name: " + name + "Address: " + address +
           "Mobile Number: " + mobilenumber + "Email Address: " + emailaddress;        
           }
  }  
  </code></pre>
  
  <p>Here is the next part of the assignment:</p>
  
  <blockquote>
    <ol start="2">
    <li>Create a class and name it AddressBookTest which will contain the main method for implementation of the AddressBook class methods from #1 of this activity.  Instantiate an array of AddressBook objects of 100 entries.  Create a menu that will implement the following methods:</li>
    </ol>
    
    <p>Main Menu</p>
    
    <ol>
    <li>Add Entry</li>
    <li>Delete Entry</li>
    <li>View All Entries</li>
    <li>Update An Entry</li>
    <li>Exit</li>
    </ol>
    
    <p>The program should loop back to the main menu after implementing a method chosen by the user. Note that options 2, 3 and 4 should not be implemented if no entry has been added yet. The program ends at the Exit option. </p>
  </blockquote>
  
  <p>Here my current code, I don't know how to delete, view all or update?</p>
  
  <pre><code>import java.util.Scanner;
  public class AddressBookTest {
  
      public static void main(String[] args) {
  
          System.out.println("***PROGRAM INFORMATION*** \nNAME
                             -&gt;  IS THE NAME OF THE PERSON IN THE ADDRESSBOOK \nADDRESS
                             -&gt;  THE ADDRESS OF THE PERSON \nMOBILE NUMBER
                             -&gt;  THE MOBILE NUMBER OF THE PERSON \nEMAIL ADDRESS   
                             -&gt;  THE EMAIL ADDRESS OF THE PERSON\n");
  
          String input;
          Scanner in = new Scanner(System.in);
          AddressBook[] entry = new AddressBook[100];
  
          do
          {
  
              System.out.println("Main Menu");  
              System.out.println("1. Add an Entry");
              System.out.println("2. Delete an Entry");
              System.out.println("3. View All Entries");
              System.out.println("4. Update an Entry");
              System.out.println("5. Exit");
              System.out.print("Please enter Choices from 1 to 5: "); 
              input =(in.nextLine());
  
  
  
              switch (input) {
                  case "1":
  
                      for(int i = 0; i &lt; 100; i++){
                      entry[i] = new AddressBook();
  
                      System.out.println("***Adding Entry in Address Book***");
                      System.out.print("First Name: ");
                      String name = in.next();
                      System.out.print("Address: ");
                      String address = in.next();
                      System.out.print("Mobile Number: ");
                      int MN = in.nextInt();
                      System.out.print("Email Address: ");
                      String EA = in.next();
                      System.out.println("***Added " + (i+1) + " Entry/Entries\n");
  
                      }
                      break;
  
                  case "2":
  
                      break;
  
                  case "3":
  
  
                      break;
                  case "4":
  
                       break;
  
                  default:
                      break;
              }
          }while(!input.equals("5"));
              System.out.println("***THANK YOU FOR USING MY PROGRAM...***");
      }      
  }
  </code></pre>