الرجوع
تسجيل الدخول

What is the output of the code below?

public class Exam {
    public static void changeNumbers(int x, int y) {
        x = x * 3;
        y = y - 2;
    }

    public static void main(String[] args) {
        int x = 3, y = 4;
        System.out.print(x + " " + y + " ");
        changeNumbers(x, y);
        System.out.println(x + " " + y);
    }
}