I have to do a recommend-a-laptop project for school, and I want to keep it as concise as possible by using very long if statements with multiple conditions. I have many of these, but here's one of them:
if
((questionArray [0].equals ("A") && (questionArray [1].equals ("A") || ("B") || ("C") || ("D")) && questionArray [2].equals ("A") && questionArray [3].equals ("A") && questionArray [4].equals ("A") || ("B") || ("C") || ("D"))
{
System.out.println("ASUS Laptop E200HA-UB02-GD 11.6 inch");
}
I am constantly getting, Error: '(' expected and I can't seem to figure it out. Please help!