I want to know the array representaion of this code,
int []x[]={{1,2},{3,4,5},{6,7,8,9}};
The program is:
class Testsss
{
public static void main(String[] args)
{
int []x[]={{1,2},{3,4,5},{6,7,8,9}};
int [][]y=x;
System.out.println(y[2][1]);
}
}
Output is 7, as I executed. How can the values are represented in array form.