Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • This has worked in giving me the error, although it is outputting 26 errors when i try input a number, would you know how this could be fixed? Thanks for the help! Commented Apr 20, 2017 at 12:54
  • Can you add an example? Commented Apr 20, 2017 at 12:56
  • Is the line of code System.out.println(list.contains("a")) needed? I have tried an if statement instead which could be causing the repeated error messages. if(!list.contains(guess)){ System.out.println("Out of range"); Commented Apr 20, 2017 at 13:02
  • if(!list.contains(guess)) should work as long as guess is a String. Commented Apr 20, 2017 at 13:24