PLEASE GIVE IT A THUMBS UP, I SERIOUSLY NEED ONE, IF YOU NEED ANY MODIFICATION THEN LET ME KNOW, I WILL DO IT FOR YOU
Command: <array_name>.length
class A{
public static void main(String[] args) {
int arr[] = new int[100];
arr[0] = 8;
arr[10] = 20;
System.out.println("Length of arr: "+arr.length);
}
}
Get Answers For Free
Most questions answered within 1 hours.