الرجوع
تسجيل الدخول
public class Main {
    public static void main(String[] args) {
        int[] numbers = {1, 2, 3, 4, 5};
        changeArray(numbers);
        System.out.println(numbers[0]);
    }

    public static void changeArray(int[] arr) {
        arr[0] = 10;
    }
}

What will be the output of the above code?