Please explain gettersetter_method from this method
<p>I have one small program related to getter and setter concept, I'm getting null value for a reason I don't understand. Here is my code, where I need to pass multiple strings in single object:</p>

<pre><code>public class simple {

    public Object getmethod(){
        getter s=new getter();
        String app="apple";
        s.setApp(app);      
        String ble="blue";
        s.setGrp(ble);
        String re="grape";
        s.setGrp(re);           
        return s;
    }
}
</code></pre>

<p>Here is the getter method:</p>

<pre><code>public class getter {
    String app;
    String org;
    String  grp;
    String mn;

    public String getApp() {
        return app;
    }

    public void setApp(String app) {
        this.app = app;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    public String getGrp() {
        return grp;
    }

    public void setGrp(String grp) {
        this.grp = grp;
    }
}
</code></pre>

<p>And here is the test class: </p>

<pre><code>public class Check {

    public static void main(String[] args) {
        simple s=new simple();
        getter g=new getter();
        s.getmethod();
        String first=g.getApp();
        String second=  g.getGrp();
        String third=g.getOrg();
        System.out.println("the value 1st is " + first + "the second" + 
                              second +"3rd is"+third);
    }    
}
</code></pre>

<p>This is where I am getting null as the value.</p>