You are on page 1of 1

//Alexander Martey Swanzy

//BC/ICT/20/091

package hello.firstjavaproject;

import java.util.Arrays;
public class ArraySize {
public static void main(String [] args) {
int [] array = {1,2,8,16,9,1,8,19,32,1};
int size;
size = array.length;
System.out.println("The size of the array is:" +size);
System.out.print("The array is");
System.out.print(Arrays.toString(array));
}
}

You might also like