Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Thread: Java abstracts

    by Norm
    Replies
    9
    Views
    1,235

    Re: Java abstracts

    Yes that should do it. Remember to be careful to not run off the end of the list.
  2. Thread: Java abstracts

    by Norm
    Replies
    9
    Views
    1,235

    Re: Java abstracts

    Don't use hardcoded numbers.
    In my last post where should the second index start when the first index is moved to the next item? What is the relationship between where the first index is set to...
  3. Thread: Java abstracts

    by Norm
    Replies
    9
    Views
    1,235

    Re: Java abstracts

    To see how to control the indexes, take a piece of paper and draw a horizontal row of numbers to represent items in an array. Point one index to the first item and the second index to the next item....
  4. Thread: Java abstracts

    by Norm
    Replies
    9
    Views
    1,235

    Re: Java abstracts

    A List should should work.
  5. Thread: Java abstracts

    by Norm
    Replies
    9
    Views
    1,235

    Re: Java abstracts

    Use an array or arraylist to hold the objects.
    Use a nested loop to compare each object in the array/arraylist against the rest of the objects in the array/arraylist.
Results 1 to 5 of 5