How I can return multiple values of different data types from a method?
I have following method,
public Response process(Applicant appl)
{
String responseString;
String requestString;
requestString = createRequestString(appl);
responseString = sendRequest(requestString);
Response response = parseResponse(responseString);
return response;
}
Here I want to return both responseString and response, one is of type
String and other is an object of class Response. How can I do this?
No comments:
Post a Comment