public class arraysize
{

    public static void main(String[] args)
    {
	int[] dave = new int[15];
	System.out.println("The array dave can hold " + dave.length + " items of data");

	System.out.println();

	int[][] bob = new int[5][7];
	System.out.println("The first dimension of bob is: " + bob.length);
	System.out.println("The second dimension of bob is: " + bob[1].length);
	System.out.println("Bob can hold " + bob.length * bob[1].length + " items of data");
    }

}
