Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2746
| From | isuy <isuy@socal.rr.com> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Java basic question |
| Date | 2013-08-03 18:17 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <ktk9ml$5sk$1@dont-email.me> (permalink) |
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.
Back to comp.lang.java.help | Previous | Next — Next in thread | Find similar | Unroll thread
Java basic question isuy <isuy@socal.rr.com> - 2013-08-03 18:17 -0700
Re: Java basic question Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-08-03 21:51 -0400
Re: Java basic question Lew <lewbloch@gmail.com> - 2013-08-03 20:46 -0700
Re: Java basic question isuy <isuy@socal.rr.com> - 2013-08-04 00:54 -0700
csiph-web