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

javaö¾ÙÀàÐÍ

public class TestEnum {
    /*×îÆÕͨµÄö¾Ù*/
    public enum ColorSelect {
        red, green, yellow, blue;    
    }
    /* Ã¶¾ÙÒ²¿ÉÒÔÏóÒ»°ãµÄÀàÒ»ÑùÌí¼Ó·½·¨ºÍÊôÐÔ,Äã¿ÉÒÔΪËüÌí¼Ó¾²Ì¬ºÍ·Ç¾²Ì¬µÄÊôÐÔ»ò·½·¨,ÕâÒ»Çж¼ÏóÄãÔÚÒ»°ãµÄÀàÖÐ×öµÄÄÇÑù. */
    public enum Season {
        // Ã¶¾ÙÁбí±ØÐëдÔÚ×îÇ°Ã棬·ñÔò±àÒë³ö´í
        winter, spring, summer, fall;
        private final static String location = "Phoenix";        
        public static Season getBest() {
            if (location.equals("Phoenix"))
                return winter;
            else
                return summer;
        }
    }
    /*»¹¿ÉÒÔÓй¹Ôì·½·¨*/
    public enum Temp {
        /*ͨ¹ýÀ¨ºÅ¸³Öµ,¶øÇÒ±ØÐëÓдø²Î¹¹ÔìÆ÷ºÍÒ»ÊôÐÔ¸ú·½·¨£¬·ñÔò±àÒë³ö´í
         * ¸³Öµ±ØÐëÊǶ¼¸³Öµ»ò¶¼²»¸³Öµ£¬²»ÄÜÒ»²¿·Ö¸³ÖµÒ»²¿·Ö²»¸³Öµ
         * Èç¹û²»¸³ÖµÔò²»ÄÜд¹¹ÔìÆ÷£¬¸³Öµ±àÒëÒ²³ö´í*/
        absoluteZero(-459), freezing(32),boil


Ïà¹ØÎĵµ£º

java ¶ÁдÎļþ²Ù×÷


Java¶ÁÎļþдÎļþ²Ù×÷
By Aillo on March 27, 2008 7:56 PM | 0 Comments | Previous | Next | EDIT
    ÕâÀJavaµÄ¶ÁÎļþºÍдÎļþ¶¼ÊÇ»ùÓÚ×Ö·ûÁ÷µÄ£¬Ö÷ÒªÓõ½ÏÂÃæµÄ¼¸¸öÀࣺ
1¡¢FileReader----¶ÁÈ¡×Ö·ûÁ÷
2¡¢FileWriter----дÈë×Ö·ûÁ÷
3¡¢BufferedReader----»º³åÖ¸¶¨ÎļþµÄÊäÈë
¸ÃÀàµÄ·½·¨ÓУº ......

JavaÓïÑÔ½Ó¿ÚÓë¼Ì³Ð±¾ÖÊ( ºÜ¾­µä)

´ó¶àÊýÈËÈÏΪ£¬½Ó¿ÚµÄÒâÒåÔÚÓÚ¶¥Ìæ¶àÖؼ̳С£ÖÚËùÖÜÖªJavaûÓÐc++ÄÇÑù¶àÖؼ̳еĻúÖÆ£¬µ«ÊÇÈ´Äܹ»Êµ×÷¶à¸ö½Ó¿Ú¡£ÆäʵÕâÑù×öÊǺÜǣǿµÄ£¬½Ó¿ÚºÍ¼Ì³ÐÊÇÍêÈ«²»Í¬µÄ¶«Î÷£¬½Ó¿ÚûÓÐÄÜÁ¦´úÌæ¶àÖؼ̳У¬Ò²Ã»ÓÐÕâ¸öÒåÎñ¡£½Ó¿ÚµÄ×÷Óã¬Ò»ÑÔÒÔ±ÎÖ®£¬¾ÍÊDZêÖ¾ÀàµÄÀà±ð£¨type of class£©¡£°Ñ²»Í¬ÀàÐ͵ÄÀà¹éÓÚ²»Í¬µÄ½Ó¿Ú£¬¿ÉÒÔ¸üºÃµÄ¹ÜÀí ......

°Ë Ò»¸öJAVA°¸Àý

   ¼ÙÉèÐèÇó(ÈçÓÐÀ×ͬ£¬´¿ÊôÇɺÏ)£º
     ÓÐÒ»¸öÈ«¹úÐԵĴóÆóÒµ£¬ÔÚÈ«¹ú¸÷µØÐèÒª²¿ÊðÉÏǧ̨¿Í»§»ú£¬ÕâЩ¿Í»§»úÐèҪʵʱÓë·þÎñÆ÷½»»¥£¬½øÐÐÊý¾Ý´¦Àí¡£ÊµÊ±ÐÔÒªÇó¸ß£¬°²È«ÐԸߣ¬ÒªÇóÖ§³ÖÊÂÎñ£¬ÒÔ¼°²»ÖжϷþÎñ¡£
   
Ó²¼þ²¿Êð£º
  1¡¢ 3000̨¿Í»§»ú
  2¡¢ 10̨· ......

java Óʼþ·þÎñÆ÷Ö®james°²×°ÅäÖÃ


James Óʼþ·þÎñÆ÷µÄ°²×°ºÍÅäÖÃ
»·¾³:
Óʼþ·þÎñÆ÷:
²Ù×÷ϵͳ:REDHAT LINUX AS 4
IP:192.168.1.108
×ÓÍøÑÚÂë:255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¿Í»§¶Ë:
²Ù×÷ϵͳ:windows 2003
IP :192.168.1.2
×ÓÍøÑÚÂë:255.255.255.0
Íø¹Ø:192.168.1.1
DNS:192.168.1.2
¼òµ¥½éÉÜÒ»ÏÂÓʼþ·þÎñÆ÷µÄÅäÖû·¾³
ÒѾ­° ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ