Cómo encontrar la longitud de una matriz en Java
class Main {
public static void main(String[] args) {
// Creating an array called x.
String[] x = new String[]{"This", "Should", "return", "4"};
// "x.length" finds the length of the array "x".
System.out.println(x.length);
// returns 4
}
}
Enchanting Elephant