Search:

Type: Posts; User: Junky

Search: Search took 0.13 seconds.

  1. Thread: Array and Menu

    by Junky
    Replies
    10
    Views
    2,008

    Re: Array and Menu

    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,...
  2. Thread: Array and Menu

    by Junky
    Replies
    10
    Views
    2,008

    Re: Array and Menu

    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...
  3. Thread: Array and Menu

    by Junky
    Replies
    10
    Views
    2,008

    Re: Array and Menu

    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...
  4. Thread: Array and Menu

    by Junky
    Replies
    10
    Views
    2,008

    Re: Array and Menu

    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.
Results 1 to 4 of 4