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

java³ÌÐòÐÔÄÜ

JavaʹµÃ¸´ÔÓÓ¦ÓõĿª·¢±äµÃÏà¶Ô¼òµ¥£¬ºÁÎÞÒÉÎÊ£¬ËüµÄÕâÖÖÒ×ÓÃÐÔ¶ÔJavaµÄ´ó·¶Î§Á÷Ðй¦²»¿Éû¡£È»¶ø£¬ÕâÖÖÒ×ÓÃÐÔʵ¼ÊÉÏÊÇÒ»°ÑË«Èн£¡£Ò»¸öÉè¼ÆÁ¼ºÃµÄJava³ÌÐò£¬ÐÔÄܱíÏÖÍùÍù²»ÈçÒ»¸öͬÑùÉè¼ÆÁ¼ºÃµÄC++³ÌÐò¡£ÔÚJava³ÌÐòÖУ¬ÐÔÄÜÎÊÌâµÄ´ó²¿·ÖÔ­Òò²¢²»ÔÚÓÚJavaÓïÑÔ£¬¶øÊÇÔÚÓÚ³ÌÐò±¾Éí¡£Ñø³ÉºÃµÄ´úÂë±àдϰ¹ß·Ç³£ÖØÒª£¬±ÈÈçÕýÈ·µØ¡¢ÇÉÃîµØÔËÓÃjava.lang.StringÀàºÍjava.util.VectorÀ࣬ËüÄܹ»ÏÔÖøµØÌá¸ß³ÌÐòµÄÐÔÄÜ¡£ÏÂÃæÎÒÃǾÍÀ´¾ßÌåµØ·ÖÎöÒ»ÏÂÕâ·½ÃæµÄÎÊÌâ¡£
¡¡¡¡ÔÚjavaÖУ¬Ê¹ÓÃ×îƵ·±¡¢Í¬Ê±Ò²ÊÇÀÄÓÃ×î¶àµÄÒ»¸öÀà»òÐí¾ÍÊÇjava.lang.String£¬ËüÒ²Êǵ¼Ö´úÂëÐÔÄܵÍÏÂ×îÖ÷ÒªµÄÔ­ÒòÖ®Ò»¡£Ç뿼ÂÇÏÂÃæÕâ¸öÀý×Ó£º
String s1 = "Testing String";
String s2 = "Concatenation Performance";
String s3 = s1 + " " + s2;
¡¡¡¡¼¸ºõËùÓеÄJava³ÌÐòÔ±¶¼ÖªµÀÉÏÃæµÄ´úÂëЧÂʲ»¸ß¡£ÄÇô£¬ÎÒÃÇÓ¦¸ÃÔõô°ìÄØ£¿Ò²Ðí¿ÉÒÔÊÔÊÔÏÂÃæÕâÖÖ´úÂ룺
StringBuffer s = new StringBuffer();
s.append("Testing String");
s.append(" ");
s.append("Concatenation Performance");
String s3 = s.toString();
¡¡¡¡ÕâЩ´úÂë»á±ÈµÚÒ»¸ö´úÂëƬ¶ÎЧÂʸü¸ßÂ𣿴ð°¸ÊÇ·ñ¶¨µÄ¡£ÕâÀïµÄ´úÂëʵ¼ÊÉÏÕýÊDZàÒëÆ÷±àÒëµÚÒ»¸ö´úÂëƬ¶ÎÖ®ºóµÄ½á¹û¡£¼ÈÈ»ÓëʹÓöà¸ö¶ÀÁ¢µÄString¶ÔÏóÏà±È£¬StringBuffer²¢Ã»ÓÐʹ´úÂëÓÐÈκÎЧÂÊÉϵÄÌá¸ß£¬ÄÇΪʲôÓÐÄÇô¶àµÄJavaÊé¼®ÅúÆÀµÚÒ»ÖÖ·½·¨¡¢ÍƼöʹÓõڶþÖÖ·½·¨£¿
¡¡¡¡µÚ¶þ¸ö´úÂëƬ¶ÎÓõ½ÁËStringBufferÀࣨ±àÒëÆ÷ÔÚµÚÒ»¸öƬ¶ÎÖÐÒ²½«Ê¹ÓÃStringBufferÀࣩ£¬ÎÒÃÇÀ´·ÖÎöÒ»ÏÂStringBufferÀàµÄĬÈϹ¹Ô캯Êý£¬ÏÂÃæÊÇËüµÄ´úÂ룺
public StringBuffer() { this(16); }
¡¡¡¡Ä¬ÈϹ¹Ô캯ÊýÔ¤ÉèÁË16¸ö×Ö·ûµÄ»º´æÈÝÁ¿¡£ÏÖÔÚÎÒÃÇÔÙÀ´¿´¿´StringBufferÀàµÄappend()·½·¨£º
public synchronized StringBuffer append(String str) {
if (str == null) {
str = String.valueOf(str);
}
int len = str.length();
int newcount = count + len;
if (newcount > value.length) expandCapacity(newcount);
str.getChars(0, len, value, count);
count = newcount; return this;
}
¡¡¡¡append()·½·¨Ê×ÏȼÆËã×Ö·û´®×·¼ÓÍê³ÉºóµÄ×ܳ¤¶È£¬Èç¹ûÕâ¸ö×ܳ¤¶È´óÓÚStringBufferµÄ´æ´¢ÄÜÁ¦£¬append()·½·¨µ÷ÓÃ˽ÓеÄexpandCapacity()·½·¨¡£expandCapacity()·½·¨ÔÚÿ´Î±»µ÷ÓÃʱʹStringBuffer´æ´¢ÄÜÁ¦¼Ó±¶£¬²¢°ÑÏÖÓеÄ×Ö·ûÊý×éÄÚÈݸ´ÖƵ½ÐµĴ洢¿Õ¼ä¡£
¡¡¡¡ÔÚµÚ¶þ¸ö´úÂ


Ïà¹ØÎĵµ£º

JAVA ¶¯Ì¬¹¹½¨Ê÷(2)

 ¶¯Ì¬¹¹½¨Ê÷µÄÄ£Ðͺͷ½·¨£º
 
/**
 * ¸ÃÄ£¿éÖ÷ÒªÊǽ«ÎÞ¹æÔò´æ·ÅµÄ¶ÔÏó½øÐÐÒ»¸öÓÐ×éÖ¯µÄÊ÷Ðνڵ㴦Àí
 * @author ÏļҼª<jijin0223@126.com>
 *
 */
public class SystemMenuTreeModel {
 
    public SystemMenuTreeModel(){
    & ......

JAVAѧϰ֮·£º²»×ßÍä·£¬¾ÍÊǽݾ¶(¶þ)

±¸×¢£º
±¾ÎÄÑ¡×ÔChinaITLabÍøУ¿Î³Ì¡¶ÁõÏþÌÎJava¾Íҵֱͨ°àV2.0¡·Ö®Ô¤±¸ÖªÊ¶£¬µã»÷ÕâÀïÁ˽â¸ü¶à£¡
JAVAѧϰ֮·---ѧϰ·Ïß¼°Òªµã
2£®Èí¼þ¿ª·¢Ñ§Ï°Â·Ïß
Á½Ç§¶àÄêµÄÈå¼Ò˼Ïë¿×ÃÏÖ®µÀ£¬ÖÐÓ¹µÄ˼Ïë͸Èë¹ÇË裬¼È²»Ã°½øÒ²²»±£Êز¢·ÇÖÐÓ¹Ö®µÀ£¬¶øÊÇÕÒѰѧϰÈí¼þ¿ª·¢µÄÕýȷ·ÏßÓë¹æÂÉ¡£
´ÓÈí¼þ¿ª·¢ÈËÔ±µÄÉúÑĹ滮À´½²£¬ÎÒÃÇ¿É ......

Java²ËÄñµÄѧϰ֮µÀ

Ô­ÌùµØÖ·¸½ÓÚ´Ë£º Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=602711 È«ÎÄÈçÏ£º
javaѧϰ֮µÀ
1.µ½ÍøÉÏ¿´¿´¸ßÊÖ¶ÔJAVAµÄһЩ¿´·¨£¬ÒÔ¼°JavaµÄÇ°¾°¡£
2.дһ¸ö¼òµ¥µÄÈëÃÅÀý×Ó£¬±ÈÈçHelloWorld£¬¿ÉÒÔʹÓÃUltraEditÀ´Ð´£¬ÈÃÄã¶ÔJAVAµÄ±àÒëÔËÐÐÓÐÒ»¸ö¸ÐÐÔµÄÈÏʶ¡£
3.ϵͳµØ·ôdzµØÁ˽âJavaµÄ¸÷¸ö²¿·Ö£¬° ......

java jxlÌí¼Óˮӡ(»ùÓÚjxl2.6.12Ð޸ıàÒë°æ)_

ÒòÊý¾Ý°²È«£¬ÐèÒª½«Éú³ÉµÄ±¨±íxls£¬Ìí¼Óˮӡ,ËùÒÔ×ÔÒÑÔÚjxlÖнøÐдúÂëÐ޸ġ£
ʹÓÃÀý×Ó
public class testJxl {
public static void main(String[] args) throws Exception {
OutputStream out = new FileOutputStream("./aaaa.xls"); // дÈëµ½FileInputStream
WritableWorkbook wwb= Workbook.createWorkbook(out);
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ