0

arr[2] = 42; system.out.println (?); what should we put in the questiin mark so that the output should be 42

please answer

21st Feb 2017, 2:59 PM
VishalYumnam
VishalYumnam - avatar
2 Respuestas
+ 4
arr[2]
21st Feb 2017, 3:43 PM
Deddy Tandean
+ 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]); } }
21st Feb 2017, 3:35 PM
Jonas