aspose file tools
The moose likes Beginning Java and the fly likes Stupid question Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Stupid question" Watch "Stupid question" New topic
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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Stupid question
 
Similar Threads
NullPointerException - but why?
OR | Question
display the log/output in JSP or HTML page
How to set ID and Value for a JCombobox
how is this possible???