Search:

Type: Posts; User: maple1100

Search: Search took 0.10 seconds.

  1. Replies
    9
    Views
    1,219

    Re: Java abstracts

    The second indexes should be 1 more than the first, am I correct?

    --- Update ---

    It work when I set i = x+1. Is this the correct way? Thanks
  2. Replies
    9
    Views
    1,219

    Re: Java abstracts

    I understand the starting at another index part but let say I put i=1 instead of 0 , it might not compare itself to thing at index 0 but at index 1 and so on it will compare itself.
  3. Replies
    9
    Views
    1,219

    Re: Java abstracts

    This is the nested loop that I have but it also compare the objects to itself since x and i have the same value at some point. How can I avoid the objects inside the list comparing itself? Thanks

    ...
  4. Replies
    9
    Views
    1,219

    Re: Java abstracts

    Would the List that I created with the objects being added fine or do I need to create a different array? Thanks
  5. Replies
    9
    Views
    1,219

    Java abstracts

    For the code belong, I'm trying to compare all the objects with each other and print if they're the same, is there any efficient methods in doing so beside me creating like 20 if else statement and...
Results 1 to 5 of 5