passing values across classes
<p><br>
       I am doing a Java application in which i have two .java files (Connect.java and Handler.java).In Connect.java i have a function where i am getting some values from some other Response.java file . Now i need to pass these values as input parameters to a function in Handler.java . Following is my java file.Can any one help me please...?</p>

<h3>Connect.java:</h3>

<pre><code>public class Connect
{

    private Response obj_response;
    public String UserId;
    public String LocationIpAddress;
    public String PassWord;

    public Connect(Response p_response)
    {
        obj_response=p_response;
    }

    public ConnectResponse handleConnect()
    {   

        try
        {   
            //values got from Response.java file
            String UserId=obj_response.getUserId();
            String LocationIpAddress=obj_response.getLocationIpAddress();
            String PassWord=obj_response.getPassWord();
        }
        catch(IOException e)
        {
            System.out.println("IO Exception");
        }

        return null;

    }
}
</code></pre>

<p>How can i implement my Handler.java?</p>
