import java.util.Scanner;
class apples {
public static void main(String args[]){
System.out.print("Hello, today I'm going to give you a quiz. \nWhat's your name?\n");
Scanner name = new Scanner(System.in);
System.out.print(name.nextLine());
System.out.print(" Is a nice name.\nToday I am going to test your knowledge.\nLet's begin!\n");
int score = 0;
System.out.print("Who is Bill Gates?\n1. He made gates.\n2. He invented the computer and used to be the owner of Microsoft.\n3. He is the CEO and owns Apple.");
Scanner one = new Scanner(System.in);
if (one == 1){
score--;
System.out.print("WRONG! You lose 1 point\n");
}
if (one == 2){
score++;
System.out.print("CORRECT! You win 1 point");
}
if (one == 3){
score--;
System.out.print("WRONG! You lose 1 point\n");
}
}
}
Uh, Eclipse says it's on line 12 (if (one == 1){) but I don't know what's wrong.
Please help.:confused::?::icon_question: