Comments (1)
It was tested and worked as seen in the code below:
HashMap hm = new HashMap();
void setup(){
size(200,200);
background(100,100,100);
hm.put("a", 4);
hm.put("b", 3);
hm.put("c", 5);
print(hm.get("a"));
clearHashMap();
print(hm.get("a"));
}
void draw(){
if((Integer) hm.get("a") == 4) {
fill(0,0,0);
rect(0,0,10,10);
} else {
fill(255,255,255);
rect(100,0,10,10);
}
}
void clearHashMap() {
Iterator j = hm.entrySet().iterator();
int i= 0;
while (j.hasNext ()) {
Map.Entry me = (Map.Entry)j.next();
hm.put(me.getKey(), 0);
}
}
from como-nos-sentimos.
Related Issues (20)
- Refactor CSS and put in a separate CSS file
- Put the JS code in a separate file
- Website sections
- Create favicon HOT 1
- Display download link for unsuported browsers
- Geotagged tweets never get weather info
- Analytics not prepared for outage HOT 1
- Filters section broken when chosen field spans more than one line
- Sentiment filter should not consider feelings preceded by a 'no' HOT 1
- Keep filter selection after new load
- PFont support in processingjs HOT 1
- Move from Chosen to Select2
- Multiple feelings in a tweet: multiple issues
- Geocoder inserting null locations HOT 1
- Better file organization HOT 1
- Feelings list sorting doesn't respect accents
- Feelings filter reloads the whole website HOT 1
- Some characters are being improperly shown
- Use Google Analytics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from como-nos-sentimos.