wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes String Buffer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "String Buffer" Watch "String Buffer" New topic
Author

String Buffer

jon ladd
Ranch Hand

Joined: Feb 11, 2003
Posts: 53
I have a buffer that is reference of a StringBuffer object that contains some text. If I code a statement to convert the entire contents of the object to uppercase.
Do I want to Start with
String toUppercase()
Or is this way off, I am using java tutorial as my reference guide.
Ta Ri Ki Sun
Ranch Hand

Joined: Mar 26, 2002
Posts: 442
a simple way to do it would be to use the StringBuffer's toString() method, and then use the String's toUpperCase() method, you could also write your own quicker method, as well as use the overloaded toUpperCase(Locale locale) method also in the String class.
but heres a quick solution
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: String Buffer
 
Similar Threads
What is there in Sting class that is not in String Buffer due to which we are seeing immutability.?
Max length/capacity for StringBuffer
toString()
String, String Buffer and String Builder
StringBuffer Question.