case 1: System.out.print("How large should I make your array? ");
int size = reader.nextInt();
dblArray = getDblArray(size);
case 4: printArray(dblArray);
I'm having trouble with these switch case statements. case 4 is calling a method (printArray) that prints out all of the values in its array parameter, while case 1 is setting the number of values in the array I'm printing (using the method getDblArray to create the double values in the array). How do I get dblArray in case 4 initialized so it recognizes getDblArray(size) as the array? All of this must be in the main method.