import java.util.Scanner; import java.io.*; /** Lab assignment: * Declare an array of ints. Read in values as long as user wants * to enter values and store the values in the array. * (hint: in order to do this, you will need a counter that will both * count and be used as the index into the array. * * Call a method to print all the values in the array. * Note: the method should only print the number of elts that you * read in. */ public class LabArrays { public static void main(String[] args) throws IOException { final int SIZE = 15; int[] numbers = new int[SIZE]; // array initialization int[] arr = {6, 8, 9, 3, 4, 10}; int count=readArray(numbers, SIZE); // serve as the index into the array /*** numbers[count] = sc.nextInt(); // while user did not enter -1, AND we are still within bounds while (numbers[count]!=-1 && count