Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,198

    Re: How to check if a word is there?

    Does the code compile? Add a println statement in the loop to print out each word that is obtained from the array so you can see that all the values are looked at.
    When it compiles without error,...
  2. Replies
    7
    Views
    1,198

    Re: How to check if a word is there?

    The contents of an array don't change how you use a loop.

    See the links in post#2
  3. Replies
    7
    Views
    1,198

    Re: How to check if a word is there?

    Your starting in the middle and working outwards. Yes, you will use a loop and an if statement.
  4. Replies
    7
    Views
    1,198

    Re: How to check if a word is there?

    Look at how to use loops and arrays:
    The for Statement (The Java™ Tutorials > Learning the Java Language > Language Basics)
    Arrays (The Java™ Tutorials > Learning the Java Language > Language...
Results 1 to 4 of 4