JavaÐòÁл¯Óë·´ÐòÁл¯
java ÖеÄÐòÁл¯Óë·´ÐòÁл¯´úÂ룺
//½øÐÐÐòÁл¯
public byte[] getByteArray(String[] str)
{
byte[] bt = (byte[])null;
try {
if (str != null) {
ByteArrayOutputStream bos = new ByteArrayOutputStream();
ObjectOutputStream oos = new ObjectOutputStream(bos);
oos.writeObject(str);
bt = bos.toByteArray();
}
} catch (Exception ex) {
bt = (byte[])null;
ex.printStackTrace();
}
return bt;
}
//½øÐз´ÐòÁл¯
public String[] getArrayList(byte[] bt)
{
String[] Array;
ObjectInputStream objIps;
try
{
objIps = new ObjectInputStream(
new ByteArrayInputStream(bt));
Array = (String[])objIps.readObject();
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
return Array;
}
Ïà¹ØÎĵµ£º
ת×Ô£ºhttp://tieba.baidu.com/f?kz=692446591
ÔõôѧϰJava£¬ÕâÊǺܶàÐÂÊÖ¾³£»áÎÊÎÒµÄÎÊÌ⣬ÏÖÔÚÎÒ¼òµ¥ÃèÊöÏÂÒ»¸öJava³õѧÕßµ½¾ÍҵҪѧµ½µÄһЩ¶«Î÷£º
Ê×ÏÈÒªÃ÷°×JavaÌåϵÉè¼Æµ½µÃÈý¸ö·½Ã棺J2SE,J2EE,J2ME£¨KJAVA£©¡£J2SE£¬Java 2 Platform Standard Edition£¬ÎÒÃǾ³£Ëµµ½µÄJDK£¬¾ÍÖ÷ÒªÖ¸µÄÕâ¸ö£ ......
±äÁ¿£º´æ´¢Êý¾ÝµÄ»ù±¾µ¥Ôª£»Ò»¸öÊý¾Ý´æ´¢¿Õ¼äµÄ±íʾ.
»ù±¾Êý¾ÝÀàÐÍ(8ÖÖ)£º
byte(1)-->short(2)-->int(4)-->long(8) float(4)-->double(8) boolean(1) char(2)
ÒýÓÃÊý¾ÝÀàÐÍ£º
String¡¢Êý×é¡¢Àà¡¢½Ó¿Ú¡¢¶ÔÏó ......
ϵͳ×Ô¶¯Å׳öµÄÒì³£
ËùÓÐϵͳ¶¨ÒåµÄ±àÒëºÍÔËÐÐÒì³£¶¼¿ÉÒÔÓÉϵͳ×Ô¶¯Å׳ö£¬³ÆÎª±ê×¼Òì³££¬²¢ÇÒ Java Ç¿ÁÒµØÒªÇóÓ¦ÓóÌÐò½øÐÐÍêÕûµÄÒì³£´¦Àí£¬¸øÓû§ÓѺõÄÌáʾ£¬»òÕßÐÞÕýºóʹ³ÌÐò¼ÌÐøÖ´ÐС£
Óï¾äÅ׳öµÄÒì³£
Óû§³ÌÐò×Ô¶¨ÒåµÄÒì³£ºÍÓ¦ÓóÌÐòÌØ¶¨µÄÒì³£,±ØÐë½èÖúÓÚ throws ºÍ throw Óï¾äÀ´¶¨ÒåÅ׳öÒì³£¡£
throwÊÇÓï¾äÅ׳ö ......
JavaÐéÄâ»ú¹ÜÀíÀàºÍ¶ÔÏóµÄÉúÃüÖÜÆÚ£»
£¨1£©ÀàµÄÉúÃüÖÜÆÚ´ÓÀà±»¼ÓÔØ£¬Á¬½Ó£¬³õʼ»¯¿ªÊ¼£¬µ½Àà±»Ð¶ÔØ½áÊø£»
£¨2£©Àà´¦ÓÚÉúÃüÖÜÆÚʱ£¬ËüµÄ¶þ½øÖÆÊý¾ÝλÓÚÔËÐÐʱ·½·¨ÇøÄÚ£¬ÔÚ¶ÑÇø»¹ÓÐÒ»¸öÏàÓ¦µÄÃèÊöÀàµÄClassÀàµÄ¶ÔÏó£»
£¨3£©Ö»Óе±Àà´¦ÓÚÉúÃüÖÜÆÚÖÐʱ£¬Java³ÌÐò²ÅÄܹ»Ê¹ÓÃËü¡£
1.JavaÐéÄâ»ú¼°³ÌÐòµÄÉúÃüÖÜÆÚ
£¨1£© ......