Search:

Type: Posts; User: Idiot_willing_to_learn

Search: Search took 0.33 seconds.

  1. Re: How to check if a word is there?

    for (string item: wordArray) {
    if (inputWord.equals(wordArray)
    JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
    }

    Am I getting warmer...
  2. Re: How to check if a word is there?

    But how do you use a loop on a string array? I'm not sure how to use a loop to get it to search the whole array?
  3. Re: How to check if a word is there?

    So after reading through that and thinking... should I use an if statement? Such as if(inputWord.equals(wordArray))? But then I'd have to have some sort of loop that has it check the entire list of...
  4. How to check if a word is there?

    I have a code with an array of words. The program asks the user to type in a word. The program should then search through the array and see if the word exists in the array or not. If it does exist,...
  5. Replies
    7
    Views
    426

    Re: JOptionPane not working?

    I ran it on Eclipse and it worked fine. I guess Terminal doesn't do GUIs?
  6. Replies
    7
    Views
    426

    Re: JOptionPane not working?

    ^I have no idea what the message means. :(

    Huh... looking at my applications, it seems that Java VisualM came with the Macintosh. Does that mean anything?
  7. Replies
    7
    Views
    426

    Re: JOptionPane not working?

    Thanks for the link.

    So I have to have this Java Platform on my computer in order for the JOptionPane to work?
  8. Replies
    7
    Views
    426

    Re: JOptionPane not working?

    Edit: API doc?

    It is a small program that I just used just to see if the JOptionPane would work. It compiles. When I run it, it displays what I quoted in my original post



    import...
  9. Replies
    7
    Views
    426

    JOptionPane not working?

    Hey guys,

    I wrote a program that required the use of JOptionPane. The program compiled without an issue. However, when I try to run it, I get these error messages:

    Exception in thread "main"...
  10. Re: Simple Java Code Help--- temperature conversion using while loop

    Well if I just replace the 'for' with a 'while' it definitely wouldn't work.



    If I want it to print out the temperatures 0.0, 5.0., 10.0, 15.0, ... 40.0, I'm guessing I definitely have to say...
  11. Simple Java Code Help--- temperature conversion using while loop

    Hello, extreme Java idiot here.

    For lab, we had to have the program output to the console screen the conversion of 98.6 degrees Fahrenheit to celsius. I did that.
    Then we had to have it print the...
Results 1 to 11 of 11