i have one problem with my code ,i did a sample program to display the emp details from a linked list,now the problem when i trying to delete a particular entry means it doe
The code tries to remove element at index position 101, but there are only four items in the list.
Use the following as a replacement of your code:
for( EmpDedup data : list) { if( data.getRecord() == rec1 ) { list.remove( data ); ++count; } }
That's where a list object will be deleted.