If you use a sentinel and can have less than 10 entries, you'll want to have a variable that keeps track of the number of entries in the array. You could use it in the printarray method to only...
Type: Posts; User: Norm
If you use a sentinel and can have less than 10 entries, you'll want to have a variable that keeps track of the number of entries in the array. You could use it in the printarray method to only...
I've been programming for a long time. I started Java in 1998.
Java SE has a class named Arrays. To avoid confusion, you should not use the same name as a java SE class.
You only need to define ONE instance of the Scanner class. There is only one...
Use the System.out.println() method to print a message to the user.
The Scanner class has several method for reading the user's response.