Thats because you are comparing the title of the dvd to itself:
Code:
if(dvd.title.equalsIgnoreCase(dvd.title))
which will always return true since you are comparing the title of the same dvd. Then after it has returned true and entered the if statement you break which will exit the for loop, so all you are doing is going through the first iteration of the for loop, entering the if statement which will always return true then exiting the whole for loop via the break statement. So you will never even get to the second iteration. Try removing the break statement and see what happens.