Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Re: Testing if an inputted String exists in an String Array

    The code needs to use a for loop with an index variable. It should NOT index each element by explicit index.

    if (input.equals(passwords[0])){
    [0] is the wrong way to do it. Put the test in a...
  2. Re: Testing if an inputted String exists in an String Array

    Look at the String class. It has several methods for comparing Strings.
    You will need a loop that accesses each element in the array and tests that element.
    You'll also need a way to remember the...
Results 1 to 2 of 2