import java.util.Scanner;
public class Outside{
public static void main (String[] args){
Scanner scan = new Scanner (System.in);
System.out.print("Is your homework done? ");
String homework;
homework = scan.nextLine();
String answer1;
answer1 = No||no||NO||No ||no ||NO ;
if (homework.equals(answer1)){
System.out.print("Do your homework");
}//If Homework
}//main
}//outside
I'm getting an error at the No||...||NO ; section. What I'm currently trying to do is make it say "Do your homework" if it gets any "no" response. I tried using if (homework.equals(No||...||NO)) and it gives the same error. What statement should I use?