Fix please
DeliciousBurger (0)

If anyone could fix my code so if the input is equal to a list it will print out the message below it.

You are viewing a single comment. View All
Edgod (58)

You can use the contains( ) method.

if (goodlist.contains(username)){
    System.out.println("Good for you");
if (badlist.contains(username)){
    System.out.println("Get better");

Edit: You might want to fix some of your code. import java.util.*; the * imports all classes and methods from the file, making your first two import statements redundant. Your code seems too spread out, you don't need that many blank lines between.
Just wondering, what are you using to learn Java?