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

¹ØÓÚjavaµÄ¼¯ºÏÀà,ÒÔ¼°HashMapÖÐSetµÄÓ÷¨!


¹ØÓÚjavaµÄ¼¯ºÏÀà,ÒÔ¼°HashMapÖÐSetµÄÓ÷¨!
2005-10-22 14:47:43 Sat | ÔĶÁ£¨547£©´Î
package com.tiantian;
import java.util.*;
public class JAVAContainer {
     public static void main(String[] args) throws Exception {
         //     ArrayList
         {
             ArrayList arraylist = new ArrayList();
             arraylist.add(0, "end");//Ö¸¶¨Ë÷Òý¼ÓÈëÖµ
             //     Ðè×¢ÒâµÄÊÇ£¬Èç¹ûÏÖÓÐ2¸öÖµ£¬ÎÒ¼ÓÈëË÷ÒýΪ5µÄÄÇô¾Í»á³öÏÖÒì³£
             for (int i = 0; i < 2; i++) {
                 arraylist.add(i, String.valueOf(i));
             }
             System.out.println("ArrayList:");
             for (int i = 0; i < arraylist.size(); i++) {
                 System.out.print(arraylist.get(i) + ";");
             }
             arraylist.add("0");//Ö±½Ó¼ÓÈëÖµµ½ArrayListµÄ×îºó
             arraylist.add("0");
             System.out.print(" ArrayList's lastIndexOf("0") is "
                    


Ïà¹ØÎĵµ£º

JavaϵÁн̳ÌĿ¼±í¡¾¶þ´Î¸üС¿

¡¾ÎªÁËÈöÁÕß¿´ÆðÀ´±È½ÏÓнṹ£¬ÎÒ×Ô¼ºÄâÁËÒ»·ÝÍêÕûµÄÌá¸Ù£¬¶øÇÒΪÁËʹµÃ¶ÁÕßÒ»±ßѧϰÀíÂÛÒ»±ßѧϰÏà¹Ø´úÂëÄÚÈÝ£¬ÀïÃæ90%µÄ´úÂëÎÒ¶¼ÌṩÁËÍêÕûµÄ´úÂëDemo£¬Ö±½Ó¼üÈë¹ýºóÓ¦¸Ã¾Í¿ÉÒÔÔËÐУ¬¶øÇÒÀïÃæËùÓеÄÖصãÎÒ¶¼±ê×¢³öÀ´ÁË£¬Ö÷ÒªÊÇ·½±ã¶ÁÕß²»»áÒÅ©µô¹Ø¼üµÄ֪ʶµã£¬ÒÔ¼°´úÂëµÄ×ÅÉ«£¬Ö÷ÒªÊÇΪÁË·ÀÖ¹¶ÁÕßÊÓ¾õÆ£ÀÍ¡£Ð»Ð»¸÷λָµ ......

centOS5 ϵÄjava»·¾³ÅäÖÃ

µÚÒ»²½£º²é¿´Linux×Ô´øµÄJDKÊÇ·ñÒÑ°²×° £¨Ð¶ÔØcentOSÒÑ°²×°µÄ1.4£©
<1># rpm -qa|grep jdk ← ²é¿´jdkµÄÐÅÏ¢»òÖ±½ÓÖ´ÐÐ
»ò
# rpm -q jdk
»ò
# java -version
<2># rpm -qa | grep gcj ← È·ÈÏgcjµÄ°æ±¾ºÅ
<3># yum -y remove java-1.4.2-gcj-compat ← жÔØgcj
µÚ¶þ²½£º°²×°JDK
< ......

flex ´¦Àíjavaºǫ́·µ»ØµÄJavaBean

¹ØÓÚflex´¦Àíjava ʵÌåbean£¬ÎÒÒ²²éÁ˺öà×ÊÁÏ£¬ÏÖÔÚÖÕÓڸ㶨£¬Ð´Ò»¸ö¼òµ¥µÄÀý×Ó£¬·ÖÏí¸ø´ó¼Ò
¸ßÊ־Ͳ»Óÿ´ÁË
/*studentʵÌåÀà=java*/
public class Student implements java.io.Serializable{
 private String sNo;
 private String sName;
 get..
 set..
}
/*flex asÀà Student.as*/
packa ......

javaÏ̳߳صÄÔ­ÀíÓëʵÏÖ

javaÏ̳߳صÄÔ­ÀíÓëʵÏÖ



[·ÖÏí]Java Ï̳߳صÄÔ­ÀíÓëʵÏÖ2008-07-18
14:53------------------------------------------------------------------------------------------------
Õ⼸ÌìÖ÷ÒªÊÇ¿ñ¿´Ô´³ÌÐò£¬ÔÚÃÖ²¹ÁËһЩÒÔǰ֪ʶ¿Õ°×µÄͬʱ£¬Ò²Ñ§»áÁ˲»ÉÙеÄ֪ʶ£¨±ÈÈç NIO£©£¬»òÕß³ÆΪм¼Êõ°É ......

javaÖеÄClassLoader

ClassLoaderÒ»¸ö¾­³£³öÏÖÓÖÈúܶàÈËÍû¶øÈ´²½µÄ´Ê£¬±¾ÎĽ«ÊÔͼÒÔ×îdzÏÔÒ׶®µÄ·½Ê½À´½²½â ClassLoader£¬Ï£ÍûÄܶԲ»Á˽â¸Ã»úÖƵÄÅóÓÑÆðµ½Ò»µãµã×÷Óá£
ÒªÉîÈëÁ˽âClassLoader£¬Ê×ÏȾÍÒªÖªµÀClassLoaderÊÇÓÃÀ´¸ÉʲôµÄ£¬¹ËÃû˼Ò壬Ëü¾ÍÊÇÓÃÀ´¼ÓÔØClassÎļþµ½JVM£¬ÒÔ¹©³ÌÐòʹÓõġ£ÎÒÃÇÖªµÀ£¬java³ÌÐò¿ÉÒÔ¶¯Ì¬¼ÓÔØÀඨÒ壬¶øÕâ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ