Home Java Java-tips Summaries Summary - Character

Ask Questions?

View Latest Questions


 
 

Summary - Character
Posted on: July 27, 2006 at 12:00 AM
Character class static methods

Java: Summary - Character

Character class static methods

In this section we will see the static methods of Character class. Character class of Java API is very useful and it is used by developers to perform common work for manipulating the strings.

Most important use of Character class is to convert the data into lowercase or upper case.

Character Class Methods

Following table list down the Character Class methods.

Character class is used mostly for static methods to test char values.
b = Character.isDigit(c) true if c is digit character.
b = Character.isLetter(c) true if c is letter character.
b = Character.isLetterOrDigit(c) true if c is letter or digit.
b = Character.isLowerCase(c) true if c is lowercase char.
b = Character.isUpperCase(c) true if c is uppercase char.
b = Character.isWhitespace(c) true if c is space, tab, ....
c = Character.toLowerCase(c) Lowercase version of c.
c = Character.toUpperCase(c) Uppercase version of c.

Above Methos of Character class is very useful.

ANSI/ASCII and Extended Latin Sections of Unicode

Unicode attempts to represent the characters in all current human languages, as well as num