Pete Starsky

Greenhorn
+ Follow
since Jun 09, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Pete Starsky

Quite simple

class String {
...
public String toString() {
return this;
}
...
}

so there is no new string in String's toString method
and in trim method new string is created