Search:

Type: Posts; User: Norm

Search: Search took 0.09 seconds.

  1. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Are All the objects put in the array lists: Strings?
    How do you verify that the same items are in both lists? Visually or via program code?
    If visually are you sure there are not leading or...
  2. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    What happened in post#3? That was a confusion.
  3. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Then removeAll() should work.
    Can you make a small, simple test program with two array lists and use the removeAll method that demonstrates your problem?
  4. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    What is the name of the class for the items being stored in the arraylist?
  5. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Please explain. I can not understand what you said here.
    I asked about the definition of the class whose objects are stored in the array list.
    What is the name of the class?
    Does it have a...
  6. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Your class appears to have the toString() method. The print out shows the contents of the class.
    Compare with the printout of my class: TestCode5@19821f
    with yours: testemail7@test.com

    Mine...
  7. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Make a test case that you can post.

    My point is that the objects in the two lists are DIFFERENT objects with the same contents.
    To remove ones with the same content, you can either use a nested...
  8. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Sorry the type of the arraylist was from my class: TestCode5. It was just an example.
    Can you print out the arraylists using a println similar to the one I posted. You should get a printed result...
  9. Replies
    19
    Views
    2,270

    Re: How would i remove overlapping lists

    Are the objects in the two lists actually the same exact objects or are they different objects with the same content?
    The two array lists contain references to the objects they contain.
    Are the...
Results 1 to 9 of 9