| Author |
Stupid question
|
Popescu Ion
Ranch Hand
Joined: Jan 14, 2011
Posts: 33
|
|
Hi everybody,
I have a stupid question. What is wrong with this program, coz i get the same answer all the time = adsdfaw , and i should get = bdsdfbw . Any ideas ? Thnx in advance.
|
 |
Popescu Ion
Ranch Hand
Joined: Jan 14, 2011
Posts: 33
|
|
|
I get it. Thnx anyway.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
Please UseRealWords: "Thanks", not "Thnx".
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
James Elsey
Ranch Hand
Joined: Dec 21, 2007
Posts: 228
|
|
The only stupid questions are those that are never asked ;)
What your seeing is the effects of immutability (is that even a word?!).
Strings are immutable so when you give it a value, thats it, you can't change it. You would have to re-assign is or create a new string altogether
|
Kind Regards, James. OCPJP 1.6 || My SCJP / OCJCP Study Notes
Interested in : SCJP, Google App Engine, Stripes, Android;|| My Bite-Size SCJP Study Blog
|
 |
 |
|
|
subject: Stupid question
|
|
|