import java.util.*; public class MainQ03containEven { // Determine whether an integer x contains even digit(s) (0,2,4,6,8) static boolean containEven(int x) { //todo } public static void main(String[] args) { Scanner s = new Scanner(System.in); int x; System.out.print("input x (-1 to end) : "); x=s.nextInt(); while (x!=-1) { if (containEven(x)) System.out.println("true"); else System.out.println("false"); System.out.print("input x (-1 to end) : "); x=s.nextInt(); } s.close(); } }