20/10/2024
import java.util.Scanner;
public class Church {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Are you ready to go to Church? (yes/no)");
String response = scanner.nextLine();
if (response.equalsIgnoreCase("yes")) {
System.out.println("Let's go to Church!");
} else {
System.out.println("Maybe next time!");
}
scanner.close();
}
}