Can anyone help me with this code? Please tell me what's wrong with it.
import java.util.Scanner; public class Program { public static void print (int x, int y) { if (x=y) { System.out.println("1"); } else if (x>y) { System.out.println("2"); } else { System.out.println("3"); } } public static void main (String [] args) { Scanner in1 = new Scanner (System.in); int x,y; System.out.println ("Enter an integer for x"); x = in1.nextInt(); System.out.println ("Enter an integer for y"); y = in1.nextInt(); print (x,y); } }