ZengCode.Com (The Thai Php Framework)  


Home   Download   Manual   About us    

Facebook   


MAIN MENU
เขียนโปรแกรมบน iPhone ด้วย MonoTouch
News
Php Tips
Ubuntu
Spring+Strut+Hibernate
Android Programming
Design Pattern By PHP
C# Design Pattern
Linux Quick Tips
C# Tips & Technique
C# using Linq น่าใช้จริงๆ
Java & JavaScript Tips
MAVEN
Database & SQL
ZengCode Framework Guide
Mac OSx
Zeng Code Code
Programming
IPhone (Tips and Trick)

Download เอกสารที่น่าสนใจ

     HashMap example in Java  (2012-01-31)

HashMap Example in JAVA

เรื่องง่ายๆที่บางครั้งยังต้องถามกูเกิล

import java.util.*;

class HashMapDemo {

public static void main(String args[]) {

// Create a hash map

Map hm = new HashMap();

// Put elements to the map

hm.put("John Doe", new Double(3434.34));

hm.put("Tom Smith", new Double(123.22));

hm.put("Jane Baker", new Double(1378.00));

hm.put("Todd Hall", new Double(99.22));

hm.put("Ralph Smith", new Double(-19.08));

// Get a set of the entries

Set set = hm.entrySet();

// Get an iterator

Iterator i = set.iterator();

// Display elements

while(i.hasNext()) {

Map.Entry me = (Map.Entry)i.next();

System.out.print(me.getKey() + ": ");

System.out.println(me.getValue());

}

System.out.println();

// Deposit 1000 into John Doe's account

double balance = ((Double)hm.get("John Doe")).doubleValue();

hm.put("John Doe", new Double(balance + 1000));

System.out.println("John Doe's new balance: " +

hm.get("John Doe"));

}

}

Output from this program is shown here:

Ralph Smith: -19.08
Tom Smith: 123.22
John Doe: 3434.34
Todd Hall: 99.22
Jane Baker: 1378.0
John Doe's current balance: 4434.34


Comment

wholesale designer jewelry  (19 พฤษภาคม 2555)   
IP : 59.60.100.12

 

After dinner hastily put on coat wandering the streets alone brings feelings of autumn awakened. Passage wholesale designer handbags of time I do not know when it is a late autumn. Wake up from the instructor has no principles with delicate skin This feels a little cool; carefully smelling backyard drifting bursts of subtle sweet-scented osmanthus  wholesale designer wallets fragrance mouth formed a trace of smile.Can not remember what I have on seasonal changes in side so numb always chasing I feel time is running behind the scene of life begins with a flash like a shadow beside me slip over. Look at the streets gem shops hot night market the flow of its own way as if the wheels of history are not hesitate to pressure wholesale eyewear frames  over time of the tracks whistling has to go toward the seasonal cycle of mortal would also like a shadow throw in the back the original the rhythm of the times much faster than before and you have time to judge to enjoy the surrounding scenery; life is like a marathon as the goal towards faith run run until the life the end. I think the wind picked womens timberland boots up a little literati Yin Chung  breathing moment on the flair to do somehow but could not find any sentiment felt that the old and making a fuss about. This makes me feel deeply profound changes in the content of modern life: the ancient times has long been the popular trend for fashion instead of chatting on the internet karaoke OK slow roll bars etc. on more than Yin Chung wind appreciated by the people in order to find a "Qianshan bird must" view to do a return to "boat Mino Weng Li" the chic is simply impossible  to wish for. Each modern just like the skyscrapers going up like from a high altitude climbing to another level the slightest slack hesitation he was drowned in the forest of buildings in the.So people live as long as literally lived up to the individual even if they are fashion handbags online submerged fashion era things can become a classic by the people's worship and admiration. Fear most is the drift has been Ebb Tide seemingly vigorous and finally the history of the sediment.

 



linjinjiao  (16 เมษายน 2555)   
IP : 27.159.228.22

 In your life there will at least one time that you oju726lij forget yourself for someone asking for no result no company no ownership nor love just ask for meeting you in my most beautiful years . Wholesale New Era Hats Cheap New Era Hats Wholesale Hats New Era 59fifty Hats Cheap Hats&Caps


Name
Comment
Security CodeCAPTCHA Image

web hit counter

This page took 0.082155 seconds to load.