there is no method to scan a char directly, unfortunately... so Iīd go with Normīs idea.
SOmething like:
Scanner chars = new Scanner(System.in);
String toBeChar = chars.toString();
char...
Type: Posts; User: JavaMistress
there is no method to scan a char directly, unfortunately... so Iīd go with Normīs idea.
SOmething like:
Scanner chars = new Scanner(System.in);
String toBeChar = chars.toString();
char...
Oh, sorry, I forgot something...
the same counts for
System.out.println(newInput);
this.hasFan=newInput;
break;
The problem is at "switch(num)".
"num" is, at the moment, a Scanner-object and not an int.
You may have printed out "num.nextInt()" in that println-method, but you have not changed the...