corda/classpath/java/lang/Character.java

30 lines
502 B
Java
Raw Normal View History

package java.lang;
public final class Character {
private final char value;
public Character(char value) {
this.value = value;
}
public char charValue() {
return value;
}
2007-07-22 19:06:21 +00:00
public static char toLowerCase(char c) {
if (c >= 'A' && c <= 'Z') {
return (char) ((c - 'A') + 'a');
} else {
return c;
}
}
public static char toUpperCase(char c) {
if (c >= 'a' && c <= 'z') {
return (char) ((c - 'a') + 'A');
} else {
return c;
}
}
}