Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    That'll be it for tonight. Back tomorrow.
  2. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    I renamed your class for my tests. Replace ArraysProblem with the name that you have.
  3. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    public static void main (String[] args) {
    new ArraysProblem(); // 1 call the constructor
    } // end main() // 2

    public...
  4. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    code in static methods can not access variables and methods that only exist when an instance of the class is created.
    Two solutions:
    make everything static
    have the main method create an instance...
  5. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    Please copy and paste here the error messages. I can't see them from here.
  6. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    Normally you have to compile a source before executing it. The IDE is hiding that from you.

    The java program is looking for a static method named main that it calls to start execution.
    Check that...
  7. Replies
    14
    Views
    1,958

    Re: Passing Arrays Between Methods

    Do you mean it compiles and then fails or are there compiler errors?
    Please copy and paste the full text of the error messages here.
Results 1 to 7 of 7