Question is simple for an expert
Integer[][] res= new Integer[][] {.....hard code some values here on 2 dim...}
How to return here 2 rows and 3 cols like this
1 2 3
4 5 6
int[][] res = {{1,2,3},
{4,5,6}};
This should work. (But I am no java expert).
Integer [][] ints = { {1, 2, 3}, {4, 5, 6} };
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With