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

±àд¸ßÐÔÄÜJavaµÄ×¢ÒâµÄ¼¸µã

ÔÚ¿ª·¢Öбàд¸ßÐÔÄÜJavaµÄ×¢Òâµã
1.Òª°Ñ×¢Òâµã·Åµ½Éè¼ÆÉÏ.
2.²»ÒªÒÀÀµ±àÒëÆ÷µÄÓÅ»¯¼¼Êõ,ÕýÈ·µÄÀí½âÔËÐÐÆÚ´úÂë,À´Ìá¸ßµÄ´úÂëµÄÔËÐÐËÙ¶È.
3.¶Ô¶ÔÏóµÄ´´½¨³É±¾½µµ½×îµÍ(±ÈÈç:ºÏÀíÉè¼ÆÀàµÄ´óС¡¢ºÏÀíÉè¼ÆÀàµÄÉî¶È¡¢²»Òª´´½¨²»±ØÒªµÄ¶ÔÏóµÈµÈ¡£¡£)
4.¾¡Á¿Ê¹ÓÃStringBufferÁ¬½Ó×Ö·û´®¡£
5.½µµÍͬ²½´øÀ´µÄÐÔÄÜÓ°Ïì¡£
ÒÔÉÏÖ»ÊÇÎÒ¸öÈ˵Ŀ´·¨¡£½ö¹©²Î¿¼


Ïà¹ØÎĵµ£º

javaÊýÖµÀàÐÍ×Ô¶¯×ª»»Ô­Ôò

ÔÚJavaÖÐʹÓÃÊýÖµ½øÐжþÔª²Ù×÷ʱ£¬ÏÈÒª½«Á½¸ö²Ù×÷Êýת»»ÎªÍ¬Ò»ÖÖÀàÐÍ£¬×Ô¶¯×ª»»Ô­ÔòÈçÏ£º
Èç¹ûÁ½¸ö²Ù×÷ÊýÖÐÓÐÒ»¸öÊÇdoubleÀàÐ͵ģ¬ÄÇôÁíÒ»¸ö²Ù×÷Êý½«»áת»»ÎªdoubleÀàÐÍ£»
·ñÔò£¬Èç¹ûÆäÖÐÒ»¸ö²Ù×÷ÊýÊÇfloatÀàÐÍ£¬ÄÇôÁíÒ»¸ö²Ù×÷Êý½«»áת»»ÎªfloatÀàÐÍ£»
·ñÔò£¬Èç¹ûÆÚÖÐÒ»¸ö²Ù×÷ÊýÊÇlongÀàÐÍ£¬ÄÇôÁíÒ»¸ö²Ù×÷Êý½«»áת»» ......

JAVAÖйØÓÚVectorµÄһЩÊÂ

        ÎÒÃÇÖªµÀ£¬Vector ÀàÌṩÁËʵÏÖ¿ÉÔö³¤Êý×éµÄ¹¦ÄÜ£¬Ëæןü¶àÔªËؼÓÈëÆäÖУ¬Êý×é±äµÄ¸ü´ó¡£ÔÚɾ³ýһЩԪËØÖ®ºó£¬Êý×é±äС¡£
Vector ÓÐÈý¸ö¹¹Ô캯Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity)
public Vector()
  ......

java °²È«É³ÏäÄ£ÐÍÏê½â£¨×ª£©


Æðµ½µÚÒ»µÀ°²È«±£ÕÏ×÷ÓõĔ˫Ç×ίÅÉÀà¼ÓÔØÄ£ÐÍ”
Ë«Ç×ίÅÉ·½Ê½µÄÀà¼ÓÔØ£¬Ö¸µÄÊÇÓÅÏÈ´Ó¶¥²ãÆô¶¯Àà¼ÓÔØÆ÷¿ªÊ¼£¬×Ô¶¥Ïòϵķ½Ê½¼ÓÔØÀàµÄÄ£ÐÍ£¨²Î¼ûµÚÒ»ÌõÀà×°ÔØÆ÷Ìåϵ½á¹¹£©¡£
ÕâÖÖÄ£Ð͵ĺô¦ÊÇ£¬µ×²ãµÄÀà×°ÔØÆ÷×°ÔصÄÀàÎÞ·¨Ó붥²ãÀà×°ÔØÆ÷×°ÔصÄÀàÏ໥µ÷Óá£
ÄÄÅÂÊÇͬ°üϵÄÀֻ࣬ҪËûÃDz»ÊôÓÚͬһÀà×°ÔØÆ÷£¬ ......

javaÃÕÌâ 2

ÏÂÃæµÄ³ÌÐò½«´òÓ¡Ò»¸öµ¥´Ê£¬ÆäµÚÒ»¸ö×ÖĸÊÇÓÉÒ»¸öËæ»úÊýÉú³ÉÆ÷À´Ñ¡ÔñµÄ¡£ÇëÃèÊö¸Ã³ÌÐòµÄÐÐΪ£º
import java.util.Random;
public class Rhymes {
private static Random rnd = new Random();
public static void main(String[] args) {
StringBuffer word = null;
switch(rnd.nextInt(2)) {
......

javascript replace ·½·¨ÓëjavaÖеÄreplace·½·¨


²»Óò»ÖªµÀ,Ò»ÓòÅÖªµÀÕâÁ½ÕßÊDz»´óÒ»ÑùµÄ,ÏñÔÚjavaÖÐ,ÊÇÖ±½ÓʹÓà ,Èç str1.replace("$","*") °Ñ$ºÅ±ä³É*ºÅ
µ«ÔÚjavascript¾Í²»Ò»Ñù,ҪʵÏÖÉÏÃæµÄ¹¦ÄÜÊÇÕâÑùд: str.replace(/&/g,"*") ÆäÖеÄgÊDzÎÊý,˵Ã÷Òª½«È«²¿µÄ$¶¼±ä³É*
ÏÂÃæ°ÑjavascriptµÄÕ³ÌùÔÚÏÂÃæ:
¶¨ÒåºÍÓ÷¨
replace() ·½·¨ÓÃÓÚÔÚ×Ö·û´®ÖÐÓÃһЩ×Ö·ûÌ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ