corda/classpath/java/lang/Character.java
2007-07-22 13:06:21 -06:00

30 lines
502 B
Java

package java.lang;
public final class Character {
private final char value;
public Character(char value) {
this.value = value;
}
public char charValue() {
return value;
}
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;
}
}
}