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...
Type: Posts; User: Norm
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...
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...