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

What is the output after the following code execution?

public static void changeRainfall(double[] dailyRain) {
    dailyRain[0] = 0.1;
}

public static void main(String args[]) {
    double[] rainValues = new double[2];
    rainValues[0] = 2.9;
    rainValues[1] = 1.3;
    changeRainfall(rainValues);
    System.out.println(rainValues[0]);
}