title: Set and get method not working
body: <p>I have a <code>public static void</code> method which reads information from some source. Then I use those set methods to save those information. The get/set methods are declared in some separate <code>public</code> classes. The get method works fine within the class where I've defined also the set method, but it doesn't work in any other class/method. I get just the value <code>null</code>. I don't know why... Could anyone help me?</p>
  
  <pre><code>public static void InformationFinder() {
          String identificationID = null;     
          String flag = null;     
          String nickname = null;
  
          // part to read the informations (saved in the variables above)
  
         UserInfo user = new UserInfo();
  
         user.setIdentificationID(identificationID);
         user.setVorname(flag);   
         user.setNachname(nickname);
  
         // shows me up the correct ID    
         System.out.println("Tell me the ID: " + user.getIdentificationID());
  }
  
  
  
  public class UserInfo {
  
      public String identificationID;
      public String flag;
      public String nickname;
  
      public UserInfo () {
  
      public String getIdentificationID() {
          return Nachname;        
      }
  
      public String getFlag() {
          return flag;
      }
  
      public String getNickname() {
          return nickname;
      }
  
  
      // set Methoden 
  
      public void setIdentificationID(String identID) {
          this.identificationID = identID;        
      }
  
      public void setFlag(String flag) {
          this.flag= flag;        
      }
  
      public void setNickname (String nickname) {
          this.nickname = nickname;       
      }
  }
  
  
  
  
   public static void main(String[] args) {
  
          UserInfo user = new UserInfo();          
  
          // shows me only null as result
          System.out.println(UserInfo.getIdentificationID());
   }
  </code></pre>
  
  <p>I know that maybe the problem is because of a second instantiating of the object. But I found no other way to use the get Method in the 'main()' function.</p>