Scanner is a new class in 1.5, maybe you were looking at the 1.4 API docs?
I've not used it myself so I can't really help you at this stage.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Scanner.nextLine() is a String, NOT a char.
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20
I would use if else statements since you only have a couple of tests to perform.
Using if else, you could also cut down on the code for testing uCase and lowercase characters:
if (letter.equals("T") || letter.equals("t"))
{
//calculations and stuff
}
server_crash
Postaholic
2,111 posts since Jun 2004
Reputation Points: 113
Solved Threads: 20