I've got a quite simple question but can't figure out how to do it. I'm using a HashMap for looping trough a csv, retrieving the elements and the amount of doubles.
What I want to do is filtering out the words that are less then 10 times in the csv. My function is like this:
void drawGraphic() {
Iterator i = countryCount.entrySet().iterator(); // Get an iterator
while (i.hasNext ()) {
Map.Entry me = (Map.Entry)i.next();
String valString = me.getValue().toString()
if (int(valString) < 10){
** Filter the item out and start the iteration from the next word **
}
rect(xPos, yPos, -int(valString), 5);
yPos = yPos + 10;
}
}
So when the while-loop reaches a word that has a valString less then 10 it should filter the word out ( something like i++ in normal for loops ). Unfortunately i++ or something like that doesn't work :(.