Hi,
I'm new to
java, I'm nt bale to fix this exception
Concurrent Modifiaction, I used a file to read data from it and store it on a linked list
data in my file is of the form
Slno Name
01 abc
01 def
02 abc
03 xyz
then i read it from the linked list and then store it by grouping them into intemsets using multimaps Map<
String, List<String>>.
I need data to be stored like this:
01 {abc,def}
02 {abc}
03 {xyz}
Data gets stored on to the linked list but I'm unable to read it from the list and store it on to multimaps.
These are the errors I'm getting:
java.util.ConcurrentModificationException
at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
at java.util.LinkedList$ListItr.next(Unknown Source)
at Itemset.main(Itemset.java:41)
I am sure there is a better way to do this, Please help me and let me know how to fix this exception or a better way to do this.
Thanks in advance.