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;
}
Ïà¹ØÎĵµ£º
ƽʱµÄ¿ª·¢µ±ÖУ¬Í¨³£ÎÒÃÇÐèÒªÑéÖ¤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 Àà Ìá ¹© ÁË Êµ ÏÖ ¿É Ôö ³¤ Êý ×é µÄ ¹¦ ÄÜ£¬ Ëæ ×Å ¸ü ¶à Ôª ËØ ¼Ó Èë Æä ÖУ¬
Êý ×é ±ä µÄ ¸ü ´ó¡£ ÔÚ É¾ ³ý Ò» Щ Ôª ËØ Ö® ºó£¬ Êý ×é ±ä С¡£
Vector ÓÐ Èý ¸ö ¹¹ Ôì º¯ Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity) ......
DOM³õ²½
DOMÊÇDocument Object ModelµÄËõд£¬¼´Îĵµ¶ÔÏóÄ£ÐÍ¡£Ç°Ãæ˵¹ý£¬XML½«Êý¾Ý×é֯Ϊһ¿ÅÊ÷£¬ËùÒÔDOM¾ÍÊǶÔÕâ¿ÅÊ÷µÄÒ»¸ö¶ÔÏóÃèÐð¡£Í¨Ë×µÄ˵£¬¾ÍÊÇͨ¹ý½âÎöXMLÎĵµ£¬ÎªXMLÎĵµÔÚÂß¼ÉϽ¨Á¢Ò»¸öÊ÷Ä£ÐÍ£¬Ê÷µÄ½ÚµãÊÇÒ»¸ö¸ö¶ÔÏó¡£ÎÒÃÇͨ¹ý´æÈ¡ÕâЩ¶ÔÏó¾ÍÄܹ»´æÈ¡XMLÎĵµµÄÄÚÈÝ¡£
ÏÂÃæÎÒÃÇÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£¬¿´¿´ÔÚDOMÖ ......
Ò»¡¢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 ......