i got a problem with hashset, I cannot remove a hashset, and here is the code
//take stopword list from file    
public void stopWordList(){
    openFile("D:/ThesisWork/Perlengkapan/stopword.txt");
    while(x.hasNext()){
        String a = x.nextLine();    
        a = a.toLowerCase();    
        stopWords.add(a);
    }
}
    //the method to remove stopword
public void stopWordRemoval(){
    stopWordList();
            //if the word in the streams set is equal to stopword, it should be removed
    for(String word:streams){
        for(String sw:stopWords){
            if(word.equals(sw)){
                streams.remove(word);                       
            }
        }
    }
But, it gives me an exception, it says like :
Exception in thread "main" java.util.ConcurentModificationException, could anyone help me? thanks :)
 
     
     
    