Fedora Linux Support Community & Resources Center
  #1  
Old 6th November 2006, 11:18 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
Java String is absolutely immutable?

From looking at the documentation for java.lang.String, I see no way to change the contents of a String. The methods that deal with concatenation etc. return Strings that are presumably different objects than the original one. Do any of the other java packages have the ability to change the characters within a string if the total number of characters is not changed?
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #2  
Old 6th November 2006, 11:33 PM
icydog Offline
Registered User
 
Join Date: Nov 2005
Posts: 447
Use StringBuffer or StringBuilder if you want a mutable String.
Reply With Quote
Reply

Tags
absolutely, immutable, java, string

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
If you absolutely MUST go to the brothel schwim Wibble 6 4th September 2007 03:07 PM
server glx vendor string: SGI, server glx version string: 1.2 + ATI X1950 akp Using Fedora 1 2nd September 2007 02:56 AM
sed regex string replacement after match string issue adosch Using Fedora 10 29th June 2007 04:07 PM
java.lang.NoSuchMethodError: org.w3c.dom.Node.getTextContent()Ljava/lang/String; Itsman_de Programming & Packaging 2 17th January 2006 10:31 PM


Current GMT-time: 06:05 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat