Scanner input= new Scanner(System.in);
int x=0;
String [] storage=new String[3];
while (x< 3){
storage[x]= input.nextLine();
x++;
}
This is my code so far. It is able to prompt the user to give the specified number of inputs. I am trying to check to see if the inputs really are being stored to the storage array. The current location of the print statement does not work because the array is "unreachable".