Thread: method calling?
View Single Post
  #4 (permalink)  
Old 01-25-2008, 12:29 AM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 260
roots is on a distinguished road
Let's for the sake of discussion indexOf returns String and we are playing with string only.

If we see last part it's toString() of something not substring of toString() of nothing. Rather than the direction it's problem of the dot operator. I think both of us know the answer and do you like if the dot operator on string_buff is associated with toString() in your second code.
__________________
dont worry newbie, we got you covered.
Reply With Quote