///
Considere o seguinte código em Java:
public class Main {
public static void main(String[] args) {
Integer[] A = new Integer[3];
A[0] = 2;
A[1] = 3;
A[2] = 9;
Proc(A, A[2]);
System.out.println(A[0]+A[1]+A[2]);
}
}
private static void Proc(Integer[] B, Integer c) {
B[0] = c;
B[2] = B[0]+B[1];
}A execução desse código resulta na impressão do seguinte valor: