|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Util
public class Util
Field Summary | |
---|---|
static int |
ALPHABET_OFFSET
Constant that can be used if needed. |
static char |
INVALIDLETTER_CODE
Constant that can be used if needed. |
Constructor Summary | |
---|---|
Util()
|
Method Summary | |
---|---|
static char |
indexToLetter(int index)
Performs conversion from integers 0..25 to letters 'A'..'Z' |
static int |
letterToIndex(char letter)
Performs conversion from letters 'A'..'Z' to integers 0..25 |
static boolean |
validLetter(char c)
Checks whether the given character is a valid capital letter |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ALPHABET_OFFSET
public static final char INVALIDLETTER_CODE
Constructor Detail |
---|
public Util()
Method Detail |
---|
public static int letterToIndex(char letter)
letter
- is the input letter, a capital letter ('A'..'Z')
public static char indexToLetter(int index)
index
- is the input integer (0..25)
public static boolean validLetter(char c)
c
- is an input character
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |