import java.util.Scanner; class LikeVerdier { private static void a() { int c = 256; int d = 1024; } private static void b() { int c = 256; int d = 1024; if (c == d) { System.out.println("C and D are equal."); } else { System.out.println("C and D are different."); } } private static void c() { Scanner s = new Scanner(System.in); //Asks the user for two value System.out.println("Input C"); int c = s.nextInt(); System.out.println("Input D"); int d = s.nextInt(); //Tells the user whether the values they entered were equal or not if (c == d) { System.out.println("C and D are equal."); } else { System.out.println("C and D are different."); } } public static void main(String[] args) { a(); b(); c(); } }