Simple question.. moving up in iteration
in
Programming Questions
•
1 year ago
Hello everyone,
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;
- }
- }
What is the code I'm looking for?
Thanks in advance
1