I was just attempting to fix your original code but I have no idea how to get System.in.read() to output an inputted integer value. ~X( I have tried all kinds of conversions but for some reason it's...
Type: Posts; User: JavaPF
I was just attempting to fix your original code but I have no idea how to get System.in.read() to output an inputted integer value. ~X( I have tried all kinds of conversions but for some reason it's...
Yes I understand now. I have just done some reading on System.in.read(). I can't remember the last time I used this on it's own.
Learning Java - Chapter 9 : Java
This is why I use the Scanner...
Hmm this is strange. I compiled the code you submitted above and changed the char variables to int. The problem is, when using System.in.read(); for some reason, if Choice is set to integer, it...
Hello luke, no problem.
Here is the Scanner class API
Scanner (Java 2 Platform SE 5.0)
Do you need to complete this without the use of the Scanner class or is my example OK?
Hello luke.
Welcome to the Java Programming Forums :D
There are a few things wrong with your code.
For a start, you have declared the wrong variable type. If you are working with numbers...