You clearly do not understand what an instance variable is. It is a variable that belongs to an instance of the class (an object). Instance varaibles can be int, long, double, String, array, Point,...
Type: Posts; User: Junky
You clearly do not understand what an instance variable is. It is a variable that belongs to an instance of the class (an object). Instance varaibles can be int, long, double, String, array, Point,...
Actually it has 10 and you program is asking for 10 but if I only want to enter 2 values why does your program force me to add a further 8 values?
Yes it is possible but that is not the point of...
Yes you use the array but variables have scope. If you don't know what that is then research it.
Other problems I see.
When user selects option 1 they enter all their data. Then it goes back to...
The name array has been declared inside the option1 method. Therefore you cannot access it outside that method. What you should do is make use of Objects and declare the array as an instance variable.