0
arr[2] = 42; system.out.println (?); what should we put in the questiin mark so that the output should be 42
please answer
2 ответов
+ 4
arr[2]
+ 2
public class Program
{
public static void main(String[] args) {
//Array with 3 integers
int[] arr = new int[3];
arr[2] = 42;
System.out.println(arr[2]);
}
}