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

java ·´Éä ¸´ÖƶÔÏó

public static Object getCloneObject(Object bean) {
Object cloneBean = null;
try {
ByteArrayOutputStream byout = new ByteArrayOutputStream();
ObjectOutputStream obj = new ObjectOutputStream(byout);
obj.writeObject(bean);
ByteArrayInputStream byin = new ByteArrayInputStream(byout
.toByteArray());
ObjectInputStream ins = new ObjectInputStream(byin);
cloneBean = (Object) ins.readObject();
} catch (Exception ex) {
ex.printStackTrace();
}
return cloneBean;
}


Ïà¹ØÎĵµ£º

Java Email¼òµ¥ÑéÖ¤

ƽʱµÄ¿ª·¢µ±ÖУ¬Í¨³£ÎÒÃÇÐèÒªÑéÖ¤EmailµØÖ·µÄºÏ·¨ÐÔ£¬Ê×ÏÈÒªÔÚÑéÖ¤´ËµØÖ·ÊÇ·ñ·ûºÏ¹æ·¶£¬Èô·ûºÏ¹æ·¶£¬ÔÙ·¢ÓʼþÒÔÈ·Èϴ˵ØÖ·ÊÇ·ñ´æÔÚ¡£
Ô´ÂëÈçÏ£º
public static boolean validateEmail(String email){
//Pattern pattern = Pattern.compile("[0-9a-zA-Z]*.[0-9a-zA-Z]*@[a-zA-Z]*.[a-zA-Z]*", Pattern.LITE ......

VectorÀàÔÚJava±à³ÌÖеÄÓ¦ÓÃ

VectorÀàÔÚJava±à³ÌÖеÄÓ¦ÓÃ
Vector Àà Ìá ¹© ÁË Êµ ÏÖ ¿É Ôö ³¤ Êý ×é µÄ ¹¦ ÄÜ£¬ Ëæ ×Å ¸ü ¶à Ôª ËØ ¼Ó Èë Æä ÖУ¬
Êý ×é ±ä µÄ ¸ü ´ó¡£ ÔÚ É¾ ³ý Ò» Щ Ôª ËØ Ö® ºó£¬ Êý ×é ±ä С¡£
Vector ÓÐ Èý ¸ö ¹¹ Ôì º¯ Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity) ......

JavaµÄXMLÎļþ²Ù×÷Ö®DOMÈëÃÅƪ £¨1£©

DOM³õ²½
DOMÊÇDocument Object ModelµÄËõд£¬¼´Îĵµ¶ÔÏóÄ£ÐÍ¡£Ç°Ãæ˵¹ý£¬XML½«Êý¾Ý×é֯Ϊһ¿ÅÊ÷£¬ËùÒÔDOM¾ÍÊǶÔÕâ¿ÅÊ÷µÄÒ»¸ö¶ÔÏóÃèÐð¡£Í¨Ë×µÄ˵£¬¾ÍÊÇͨ¹ý½âÎöXMLÎĵµ£¬ÎªXMLÎĵµÔÚÂß¼­ÉϽ¨Á¢Ò»¸öÊ÷Ä£ÐÍ£¬Ê÷µÄ½ÚµãÊÇÒ»¸ö¸ö¶ÔÏó¡£ÎÒÃÇͨ¹ý´æÈ¡ÕâЩ¶ÔÏó¾ÍÄܹ»´æÈ¡XMLÎĵµµÄÄÚÈÝ¡£
ÏÂÃæÎÒÃÇÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£¬¿´¿´ÔÚDOMÖ ......

JAVA ÅàѵÌâ¿â JSP

Ò»¡¢JSP_Ñ¡ÔñÌâ
1. ÒÔÏÂÑ¡ÏîÖв»ÊÇjspÒþʽ¶ÔÏóµÄÊÇ£º£¨ £©
A  pageContext
B  context
C  application
D  out
²Î¿¼´ð°¸£ºB
2. ÏÂÃæÄÄÒ»¸ö²»ÊÇJSP±¾ÉíÒѼÓÔصĻù±¾Àࣿ£¨ £©
A  java.lang.* 
B  java.io.* 
C  javax.servlet.* 
D  javax.servlet.j ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ