import java.util.Scanner;
public class test {
static public void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("Желаете еще партейку? y/n");
String answer = scanner.nextLine();
if (answer == "yes" || answer == "y") {
System.out.println("ок");
} else {
System.out.println(answer);
System.out.println("Не правильно");
}
}
}