int x_input = 1; int y_input = 2; if (x_input=1 && y_input=1) { System.out.println("yes"); } else { System.out.println("no"); }