title: Why Giving Null?
body: <p>Okaii so i wrote the two classes , did the main too (Still testing, not done yet ) , after running it , it gives null in the output , which means the default value.. why ?</p>
  
  <p><strong>Location class</strong>  ( With setters and getters )</p>
  
  <pre><code>public class Location {
  
  public String city;
  public String street;
  
  public Location() {
  }
  
  public Location(String city, String street) {
      this.city = city;
      this.street = street;
  }
  
  
  
  @Override
  public String toString(){
      return "City Is : " + city + " \nStreet Is : " + street;
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p><strong>And this is the composition in property class :</strong> (Also with setters and getters ) </p>
  
  <pre><code>public Location location = new Location();
      public static int counter = 0;
  
      public Property(int ID, Location location) {
          this.ID = ID;
          this.location = new Location();
          counter++;
      }
  public String toString() {
          return "\nID is : " + ID + "\nLocation is : \n" + location.toString();
      }
  </code></pre>
  
  <p><strong>And the output is :</strong> </p>
  
  <p>Enter Propery ID :
  123
   Enter Property City and Street :
  test
  test1
   Do you want to Enter more Property Data ?
  no
   Choose One of the Options from the following menu : 
   1- List all properties. For each property display its id and location<br>
   2- List all properties locations. For each property display only the location<br>
   3- List all the ids of all properties that are in a certain given city (read the city)<br>
   4- Given a property id change its location city (read the id and the new value of city)<br>
   5- Display the location of a property given its id if it is found in the array (read the id)<br>
   6- Display the number of properties<br>
   7- Exit
  1</p>
  
  <hr>
  
  <p>Property 1
  ID is : 123
  Location is : 
  City Is : null 
  Street Is : null</p>