Search:

Type: Posts; User: theonlydvr

Search: Search took 0.13 seconds.

  1. [SOLVED] Re: Hangman Program Java: Comparing the User's Guess with Another String Letter by Letter

    I fixed the program!!! My problem was that I wasn't initializing word.flags. Thank you so much pb!
  2. Replies
    2
    Views
    1,089

    Re: Logger wirtes zero values to file

    We will be able to help you more if you post some of the related code. 0x0 is the value for null. You can print null to a file by doing this println(null);
    I hope this helps.
  3. [SOLVED] Re: Hangman Program Java: Comparing the User's Guess with Another String Letter by Letter

    Thanks pbrockway2! I already took that part out of my code in previous debugging attempts. In doing this guesses just stayed on the screen. What I think happened is that the guess satisfied the if...
  4. Replies
    2
    Views
    1,358

    Re: File not found

    FileReader can take a File as an argument. Try removing the getPath() function when declaring the reader and see what happens.
  5. Re: I need help to write encrypt and decrypt 4 digit numbers.

    Your code looks good and it is the fastest way of completing the problem. Modulo gives you the remainder of the division operation as you probably know. Technically it is impossible to reverse modulo...
  6. Re: I need help to write encrypt and decrypt 4 digit numbers.

    Change the do {} while loop line to this in both programs.



    while(num/10000 != 0 || inputString.length() != 4);
  7. Replies
    7
    Views
    1,336

    Re: Guessing Game

    You can add a do {} while loop. A do {} while loop will repeat through the code once and then again and again until the while is satisfied, for your code it would look like this:


    public static...
  8. [SOLVED] Hangman Program Java: Comparing the User's Guess with Another String Letter by Letter

    I'm making a Hangman program to test my knowledge of GUI's. However my program is not checking letters correctly. This is my code for a Field Listener that checks the user's input with the word. I'm...
  9. Thread: Hello!

    by theonlydvr
    Replies
    1
    Views
    748

    Hello!

    Hello, my name is Evan, and I've started learning Java after having learned C online through edx.
Results 1 to 9 of 9