Hello all,
First I'm a beginner at Java programming. I have been programming for about 4 months now and have learned more or less the basics of Java. I have built a Java Swing program that is a...
Type: Posts; User: Discoveringmypath
Hello all,
First I'm a beginner at Java programming. I have been programming for about 4 months now and have learned more or less the basics of Java. I have built a Java Swing program that is a...
Hello all,
I'm relatively new to Java programming, I have a question about a piece of code from a video tutorial online:
static Scanner userInput = new Scanner(System.in);
public static...
Hello Zaphod_b,
Thanks for the reply, you hit it on the nose. I was looking at it wrong, it doesn't return false when I input 'q'. I was mistaken. I ended up looking back at the code and realized...
Hello All,
I have a if statement that uses the or ( '|' ) and the and ( '&' ) for the if's condition. Here is the code:
if (ch < '1' | ch > '7' & ch != 'q') return false;
else return...
I did try other keys and got some other values as well; I would get the 'd' and 'a' regardless though. I read a little more in the book that I was reading and It shows how to use this loop after the...
thanks Norm for the response,
I tried you code and the ENTER key returns back: 'd' and 'a'. I'm still confused as to why it does this. Is this standard for the ENTER key?
Hello People,
So I'm new to Java programming and I'm reading through Herbert Schildt's "A beginner's Guide" 5th ED. I have come across something that I don't fully understand. This the code that...