hey im trying to make a program that if you use a scanner class you can type A and then the switch statment will change that to something else.
altho i just realised that i cant do this as the way i would read a letter into a scanner would be by using this
Scanner scan = new Scanner (System.in);
System.out.print ("please eneter a letter: ");
value = scan.nextLine();
but the switch class does not let u use strings can anyone lend a hand how i can get around this
thanks for any help
ok just thought could i not read the string in using the scanner class and then convert the string to an int
so A would = 1
and that could then run my switch statement
switch (value)
{
case 1:
System.out.print ("one");
break;