Answers for "java 2d arrays"

3

java sort 2d array

Arrays.sort(myArr, (a, b) -> a[0] - b[0]);
Posted by: Guest on December-29-2020
1

2d array java

int[][] arr = new int[10][20]; 
        arr[0][0] = 1;
Posted by: Guest on January-23-2021
0

java 2d array

int[][] myNumbers = { {1, 2, 3, 4}, {5, 6, 7} };
int x = myNumbers[1][2];
System.out.println(x); // Outputs 7
Posted by: Guest on October-16-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language