Search:

Type: Posts; User: Discoveringmypath

Search: Search took 0.11 seconds.

  1. Using a Database of TextFiles for saving data

    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...
  2. Replies
    3
    Views
    2,807

    hasNextInt() question

    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...
  3. [SOLVED] Re: Confused on if statements condition...

    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...
  4. [SOLVED] Confused on if statements condition...

    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...
  5. [SOLVED] Re: Don't understand why it loops through multiple times...

    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...
  6. [SOLVED] Re: Don't understand why it loops through multiple times...

    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?
  7. [SOLVED] Don't understand why it loops through multiple times...

    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...
Results 1 to 7 of 7