"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Originally posted by Campbell Ritchie:
Welcome to JavaRanch. I know there are people who have the same first and last names, but please confirm that is your real name, as required by our naming policy.
Originally posted by Vishal Pandya:
vincent,
Here, only one string object is created.
Here, for every iteration one String object is created.
Now, one question for you vincent.
What's going on here?
If we will create object outside of loop means finally we will get last value only.
If we will create object inside of loop means we will get all value.
Consider Paul's rocket mass heater. |