This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

StringBuffer  RSS feed

 
tony kanvas
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Same question answered over here Marcus Green's JCHQ.NET Certification Discussion
 
tony kanvas
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Barry how we can make (b) take value of (a) thanks
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony, acting on the object pointed to by b, like this:

b.replace(0 , b.length() , a.toString());

Notice that b = a; did not work because within the method the parameter b acts like an alias of b such as b'; where b' = b had been executed at the time of the method invokation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!