import java.util.Scanner; public class StringExample3 { public static void main(String[] args) { //Ask a question and see if the person answering it gets it right Scanner s = new Scanner(System.in); System.out.println("What color is the sky on a clear day?"); String answer = s.next(); if(answer=="blue") System.out.println("Correct"); else System.out.println("Wrong. The correct answer is blue"); } }