ArrayList list = new ArrayList();
list.add("h");
list.add("e");
list.add("l");
list.add("l");
list.add("o");
for (int i = 1; i < 10; i++) {
list.add(i);
}
Iterator it = list.iterator();
while (it.hasNext()) {
out.println(it.next() + "<br/>");
}
HashSet hs = new HashSet();
hs.add("A");
hs.add("B");
hs.add("C");
hs.add("C");
hs.add("C");
HashMap hm = new HashMap();
hm.put("a", "A");
hm.put("b", "B");
Iterator its = hs.iterator();
while (its.hasNext()) {
out.println(its.next() + "<br/>");
}
Iterator itr = hm.entrySet().iterator();
while (itr.hasNext()) {
Map.Entry pair = (Map.Entry) itr.next();
out.println(pair.getKey() + " => " + pair.getValue() + "<br/>");
}
String[] strarr = new String[10];
for (int i = 0; i < 10; i++) {
strarr[i] = "abc" + i;
}
for (String valu : strarr) {
out.println(valu);
}
Ref:
- http://stackoverflow.com/questions/85190/how-does-the-java-for-each-loop-work
- http://stackoverflow.com/questions/4131655/what-is-the-difference-between-lists-arraylists-maps-hashmaps-collections-et
- https://www.quora.com/What-is-the-difference-between-a-Set-and-a-Map-in-Java
- http://stackoverflow.com/questions/1066589/iterate-through-a-hashmap
- http://stackoverflow.com/questions/1200621/how-to-declare-an-array-in-java
- http://stackoverflow.com/questions/1665834/how-can-i-initialize-a-string-array-with-length-0-in-java
Your point of view caught my eye and was very interesting. Thanks. I have a question for you.
范德沃克第二季高清完整版AI深度学习内容匹配,海外华人可免费观看最新热播剧集。
凯伦皮里第一季高清完整版,海外华人可免费观看最新热播剧集。
Your article helped me a lot, is there any more related content? Thanks!
For those seeking an exceptional online gaming experience, us.com](https://maxispin.us.com/) stands out as a premier destination. At Maxispin Casino, players can enjoy a vast array of pokies, table games, and other thrilling options, all accessible in both demo and real-money modes. The casino offers attractive bonuses, including free spins and a generous welcome offer, along with cashback promotions and engaging tournaments. To ensure a seamless experience, Maxispin provides various payment methods, efficient withdrawal processes, and reliable customer support through live chat. Security is a top priority, with robust safety measures and a strong focus on responsible gambling tools. Players can easily navigate the site, with detailed guides on account creation, verification, and payment methods. Whether you’re interested in high RTP slots, hold and win pokies, or the latest slot releases, Maxispin Casino delivers a user-friendly and secure platform. Explore their terms and conditions, read reviews, and discover why many consider Maxispin a legitimate and trustworthy choice in Australia.
Whether you’re a seasoned copywriter or just starting out, MaxiSpin.us.com provides the resources you need to enhance your content.
**Features of MaxiSpin.us.com**
The platform also includes a built-in editor, enabling on-the-spot adjustments for optimal results.
**Benefits of Using MaxiSpin.us.com**
MaxiSpin.us.com’s scalability allows it to meet the needs of users across various industries and sizes.