javaÔÓÏë
²ÉÓÃÓûÑïÏÈÒÖµÄÊÖ·¨Ì¸Ì¸java:
javaûÓÐÖ¸ÕëÖ»ÓÐÒýÓÃÊÇ×î´óµÄ°Ü±Ê.ÕýÒòΪûÓÐÖ¸Õë,ºÜ¶à²Ù×÷ÒªÓØ»ØÍñת;À¬»øÊÕ¼¯»úÖÆÒ²¾õµÃÊǼ¦Àß,д¸öÎö¹¹º¯ÊýÕæµÄÄÇô¸´ÔÓÂð, ÓбØÒªÎþÉüÁé»îÐÔÂð;º¯Êýµ÷ÓõĴú¼ÛÖ®¸ßÈÃÈË×¥¿ñ
µ«ÎÒ»¹ÊÇÑ¡ÔñÁËËý:
javaµÄ´¿ÃæÏò¶ÔÏóÌØÐÔ¾ö¶¨ÁËËýµÄÓï·¨µÄÇåÎú×ÔÈ»,ËýµÄ°ü»úÖÆ²»Öª±Èc++µÄincludeºÍÃüÃû¿Õ¼ä ºÃ¶àÉÙ±¶,½ö´ËÒ»Ìõ¾ÍÎüÒýÁËÎÒÀ뿪C++ÕóÓª,¾Íдjava´úÂëʱ²Å»á¾õµÃ¿ÉÒÔÍêȫרעÓÚÓïÑÔÒÔÍâµÄ¶«Î÷.
µ«ÏÖÔÚÓֺܻ³Äîc++µÄÁé»î¸ßЧ,ÕæÏ£Íû³öÏÖÒ»ÖÖȫеÄ,Óï·¨ÏñjavaµÄ´¿±àÒëÐÍÓïÑÔ,²»ÊÇjavaµÄ°ë±àÒë°ë½âÊÍ
Ïà¹ØÎĵµ£º
ÎÒÃÇÖªµÀ£¬Vector ÀàÌṩÁËʵÏÖ¿ÉÔö³¤Êý×éµÄ¹¦ÄÜ£¬Ëæ×Ÿü¶àÔªËØ¼ÓÈëÆäÖУ¬Êý×é±äµÄ¸ü´ó¡£ÔÚɾ³ýÒ»Ð©ÔªËØÖ®ºó£¬Êý×é±äС¡£
Vector ÓÐÈý¸ö¹¹Ô캯Êý£¬
public Vector(int initialCapacity,int capacityIncrement)
public Vector(int initialCapacity)
public Vector()
......
ÏÂÃæµÄ³ÌÐò½«´òÓ¡Ò»¸öµ¥´Ê£¬ÆäµÚÒ»¸ö×ÖĸÊÇÓÉÒ»¸öËæ»úÊýÉú³ÉÆ÷À´Ñ¡ÔñµÄ¡£ÇëÃèÊö¸Ã³ÌÐòµÄÐÐΪ£º
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)) {
......
ÔÚ¿ª·¢Öбàд¸ßÐÔÄÜJavaµÄ×¢Òâµã
1.Òª°Ñ×¢Òâµã·Åµ½Éè¼ÆÉÏ.
2.²»ÒªÒÀÀµ±àÒëÆ÷µÄÓÅ»¯¼¼Êõ,ÕýÈ·µÄÀí½âÔËÐÐÆÚ´úÂë,À´Ìá¸ßµÄ´úÂëµÄÔËÐÐËÙ¶È.
3.¶Ô¶ÔÏóµÄ´´½¨³É±¾½µµ½×îµÍ(±ÈÈç:ºÏÀíÉè¼ÆÀàµÄ´óС¡¢ºÏÀíÉè¼ÆÀàµÄÉî¶È¡¢²»Òª´´½¨²»±ØÒªµÄ¶ÔÏóµÈµÈ¡£¡£)
4.¾¡Á¿Ê¹ÓÃStringBufferÁ¬½Ó×Ö·û´®¡£
5.½µµÍͬ²½´øÀ´µÄÐÔÄÜÓ°Ïì¡£
ÒÔÉÏÖ»Ê ......
µÚ1ÕÂ
Java»ù´¡
1.1 JavaµÄÀúÊ·ºÍ»ù±¾ÔÀí
1.2 Java×Ö½ÚÂë
1.3 JavaÊõÓï
1.4 &nbs ......