Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

javaÑ­»·±éÀúmap

JDK1.4ÖÐ
Map map = new HashMap();
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Object key = entry.getKey();
Object value = entry.getValue();
}
JDK1.5ÖÐ,Ó¦ÓÃÐÂÌØÐÔFor-EachÑ­»·
Map m = new HashMap();
for(Object o : map.keySet()){
map.get(o);
}
·µ»ØµÄ set ÖеÄÿ¸öÔªËض¼ÊÇÒ»¸ö Map.Entry ÀàÐÍ¡£
private Hashtable<String, String> emails = new Hashtable<String, String>();
  ÁíÍâ ÎÒÃÇ¿ÉÒÔÏÈ°ÑhashMap תΪ¼¯ºÏCollection£¬ÔÙµü´úÊä³ö£¬²»¹ýµÃµ½µÄ¶ÔÏó
//·½·¨Ò»: ÓÃentrySet()
Iterator it = emails.entrySet().iterator();
while(it.hasNext()){
Map.Entry m=(Map.Entry)it.next();
logger.info("email-" + m.getKey() + ":" + m.getValue());
}

// ·½·¨¶þ£ºjdk1.5Ö§³Ö£¬ÓÃentrySet()ºÍFor-EachÑ­»·()
for (Map.Entry<String, String> m : emails.entrySet()) {

logger.info("email-" + m.getKey() + ":" + m.getValue());
}

// ·½·¨Èý£ºÓÃkeySet()
Iterator it = emails.keySet().iterator();
while (it.hasNext()){
String key;
key=(String)it.next();
logger.info("email-" + key + ":" + emails.get(key));
}
// ·½·¨Î壺jdk1.5Ö§³Ö£¬ÓÃkeySEt()ºÍFor-EachÑ­»·
for(Object m: emails.keySet()){
logger.info("email-" + m+ ":" + emails.get(m));
}
      Map    aa    =    new    HashMap();     
    aa.put("tmp1",    new    Object());      //×·¼Ó      Ìæ»»ÓÃͬÑùµÄº¯Êý.     
    aa.remove("temp1");                        //ɾ³ý      f
    or    (Iterator    i    = &n


Ïà¹ØÎĵµ£º

ʹÓà IBM Rational ClearQuest Java API ½øÐм¯³É¿ª·¢

 Ô¤±¸ÖªÊ¶
¡¡¡¡±¾½Ì³ÌÕë¶ÔʹÓùý Rational ClearQuest Test Management µÄÈËÔ±¡£ÐèÒªÄãÁ˽â CQTM ÖеĻù±¾¸ÅÄî¡£ÁíÍâÄã×îºÃÁ˽â Eclipse£¬µ«²»ÊDZØÐèµÄ¡£
¡¡¡¡ÏµÍ³ÐèÇó
¡¡¡¡Äú¿ÉÒÔ°²×° IBM WebSphere Integration Developer À´ÔËÐб¾ÎÄÖеÄʾÀý³ÌÐò¡£
¡¡¡¡Rational ClearQuest Test Manager£¨CQTM£©¼ò½é
¡¡
¡¡Ä¿ ......

JavaµÄÉ±´ºÍdz¿½±´(2)

ÉÏһƪÎÄÕ½²ÊöÁËdz¿½±´ºÍÉ±´µÄº¬Ò壬²¢ÇÒ¸ø³öÁËdz¿½±´µÄÒ»¸öÀý×Ó
ÕâƪÎÄÕÂÔÚÄǸöÀý×ÓµÄʵÏÖÉÏ×÷³öÐ޸ģ¬ÊµÏÖÉ±´,´úÂëÈçÏ£º
package com.test;
public class CloneTest
{
public static void main(String[] args)
{
Student s1 = new Student();
s1.setAge(20);
s1.setName("wudi");
School sch ......

javaµÄÄÇЩÊ£ºÊµÏÖѧÉúÐÅϢ¼ÈëºÍ²é¿´

±¾³ÌÐò¿ÉÒÔʵÏÖѧÉúÐÅϢ¼ÈëºÍ²é¿´¡£
ÒªÇó£º
£¨1£©ÀûÓÃSwingÉè¼ÆͼÐÎÓû§½çÃ棬½çÃæ°üÀ¨£ºÑ§ÉúÐÅϢ¼ÈëºÍÏÔʾѧÉúÐÅÏ¢£»
£¨2£©Ìí¼ÓѧÉúÐÅÏ¢£ºÊµÏÖÍù¼¯ºÏÀïÌí¼ÓѧÉúÐÅÏ¢£¨Ñ§ºÅ,ÐÕÃû,ÐԱ𣬳ɼ¨£©
      ×¢Ò⣺Óû§ÊäÈëÐÅÏ¢µÄÑéÖ¤¡£
£¨3£©ÐÞ¸ÄѧÉúÐÅÏ¢£ºÓÉÓû§ÊäÈëѧÉúµÄѧºÅ£¬³ÌÐòÑéÖ¤ÊÇ·ñÓдËѧÉú ......

Java Card ¼¼Êõ(¶þ)

 
±¾ÏµÁÐÎÄÕÂµÄµÚ 1 ²¿·Ö½éÉÜÁË Java Card ¼¼ÊõµÄ¸ß¼¶ÖªÊ¶ —— ʲôÊÇÖÇÄÜ¿¨¡¢Java Card Ó¦ÓóÌÐòµÄÔªËØ¡¢Í¨ÐźͲ»Í¬ Java Card ¼¼Êõ¹æ·¶µÄ»ã×Ü¡£ÔÚ±¾²¿·ÖÖУ¬ÎÒÃǽ«Öصã½éÉÜ Java Card applet µÄ¿ª·¢£º¿ª·¢ Java Card Ó¦ÓóÌÐò¡¢Sun Java Card ¿ª·¢¹¤¾ßÏä¡¢Java Card ºÍ Java Card RMI API ʱËùÐèµÄÒ»°ã² ......

Java Card¿ª·¢³£Óõİü£¨ÕûÀí£©

 ÕûÀíÁËһϳ£Óõ½µÄJava¿¨¿ª·¢°üÀïµÄ·½·¨£¬ÒÔºó¾ÍÄܼӿ쿪·¢ËÙ¶ÈÁË¡£
//Java Card¿ª·¢·½·¨²éѯ
import java.lang.*;
import javacard.framework.*;
import javacard.security.*;
import javacardx.crypto.*;     //¸Ã°üΪÀ©Õ¹°ü
//install·½·¨
public static void install(byte[] bArray, ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ