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...
Type: Posts; User: Norm
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...
What happened in post#3? That was a confusion.
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?
What is the name of the class for the items being stored in the arraylist?
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...
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...
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...
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...
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...