+ 2
public class Program { public static void main(String[] args) { int[ ][ ] sample = { {1, 2, 3}, {4, 5, 6} };
how did the answer come 4???? plz help me..
5 Respostas
+ 22
But what is the question?
+ 7
There are many ways to get 4
System.out.print(sample[0][1]*2);
System.out.print(sample[0][0] + sample[0][2]);
System.out.print(sample[1][0]);
....etc
+ 4
System.out.println(sample[1][0]);
+ 4
Ok thanks atikrant negi
0
System.out.println(sample[1][0]);