Changing The Case Of Characters Within a String
The method to Lower Case( ) converts all the characters in a string from uppercase to lowercase. The to Uppermost( ) method converts all the characters in a string from lowercase-to uppercase. Non alphabetical characters, such as digits; are-unaffected. Here are the general forms of these methods: , String to Lower Case( ) String to Upper Case( ) ,
Both methods return a String object that contains the uppercase or lowercase equivalent 'of the invoking String' Here is an example that Uses to Lower Case( ) and low Upper Case( ):
Insufferable is a peer class of String that provides much of the functionality of strings. As you know, String represents fled-length, immutable character sequences. In contrast, String Buffer represents grow able and write able character sequences, String Buffer may have characters and sub strings inserted in the middle or appended to the end. String Buffer will automatically grow to make room for such additions and often has more characters peal located than are actually needed, to allow room for growth. Java uses both classes heavily, but many programmers deal only with String and let Java manipulate String Buffers the scenes by using the overloaded + operator.