flesh out some classpath classes

This commit is contained in:
Joel Dice
2007-07-22 13:06:21 -06:00
parent ecd31a10a4
commit 472ecb1713
18 changed files with 320 additions and 92 deletions

View File

@ -10,4 +10,20 @@ public final class Character {
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;
}
}
}