Search:

Type: Posts; User: Junky

Search: Search took 0.08 seconds.

  1. Replies
    4
    Views
    1,214

    [SOLVED] Re: Constructor and declaration issues

    int[] array = new int[someValue];
    SortedListArray listObj= new SortedListArray(); // no longer need a constructor in the SortedListArray class
    listObj.process(array, 5, 1);

    Something like that.
  2. Replies
    4
    Views
    1,214

    [SOLVED] Re: Constructor and declaration issues

    Your problem is that you have created the int array inside the SortedListArray constructor. This means it is local and cannot be accessed anywhere else in your program. Maybe you should create an int...
Results 1 to 2 of 2