public class Ejercicio02 { public static void main(String[] args) { int valor1 = 1; int valor2 = 1; comparacion(valor1, valor2); } public static void comparacion(int val1, int val2){ if(val1 < val2) System.out.printf("\n%d < %d\n", val1, val2); if(val1 > val2) System.out.printf("\n%d > %d\n", val1, val2); if(val1 == val2) System.out.printf("\n%d == %d\n", val1, val2); } }