【发布时间】:2013-08-17 09:34:03
【问题描述】:
我有以下方法,
public Response process(Applicant appl)
{
String responseString;
String requestString;
requestString = createRequestString(appl);
responseString = sendRequest(requestString);
Response response = parseResponse(responseString);
return response;
}
这里我想返回responseString和response,一个是String类型,另一个是Response类的对象。我该怎么做?
【问题讨论】:
-
为什么不让ˋResponseˋ类也保留ˋresponseStringˋ?它看起来像是一个明显的容器。
标签: java