isuy
2013-08-04 01:17:21 UTC
Suppose I have:
class A {
String index = "string";
String getPage(String str) { return str; }
}
When I call:
new A().getPage("index") , it returns "index" instead of "string".
What Do I need to do to get "string"?
Thank you.
class A {
String index = "string";
String getPage(String str) { return str; }
}
When I call:
new A().getPage("index") , it returns "index" instead of "string".
What Do I need to do to get "string"?
Thank you.