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

Éî¿ÌÀí½âJava±à³ÌµÄ7¸öÀý×Ó

 1. ÔĶÁÏÂÁдúÂë»Ø´ðÎÊÌ⣨µÚÒ»¸öJava³ÌÐò£¬Àí½âPATHºÍCLASSPATH£¬Ñ§»áʹÓÃjavacºÍjavaÃüÁ
view plaincopy to clipboardprint?
package cn.edu.uibe;  
public class HelloWorld {  
    public static void main(String[] args) {  
        System.out.println("Hello World!");  
    }  

package cn.edu.uibe;
public class HelloWorld {
    public static void main(String[] args) {
        System.out.println("Hello World!");
    }
}
 
ÎÊ£º
£¨1)ÉÏÃæ´úÂëËùÔÚµÄÔ´ÎļþµÄÎļþÃûÊÇ_______________£¿
£¨2£©ÔÚDOSÌáʾ·ûÏ£¬µ±Ç°Ä¿Â¼Îª¸ÃÔ´ÎļþËùÔÚµÄĿ¼£¬PATH»·¾³±äÁ¿ÒѰüº¬±àÒë³ÌÐòËùÔڵķ¾¶£¬±àÒëÄ¿±ê·¾¶Îª“D:\classes”£¬±àÒëÃüÁîÐÐÊÇ_____________£¿
£¨3£©ÎªÁËÈÃJava½âÊÍÆ÷Äܹ»ÕÒµ½±àÒëºóµÄÀàÎļþ£¬ÐèÒªÈçºÎÉèÖû·¾³±äÁ¿___________£¿
£¨4£©ÔÚÕýÈ·ÉèÖÃÁËÏà¹ØµÄ»·¾³±äÁ¿Ö®ºó£¬ÔËÐÐHelloWorldÀàµÄÃüÁîÐÐÊÇ____________?
´ð°¸£º
£¨1£©HelloWorld.java£¬¹«¹²Àà±ØÐ붨ÒåÔÚºÍÀàÃûͬÃûµÄÎļþÖУ¬ÎļþÃûÇø·Ö´óСд¡£
£¨2£©javac -d D:\classes HelloWorld.java £¬-d¸ø³öÊä³öĿ¼£¬javac»áÔÚD:\classes´´½¨°üµÄĿ¼²ã´Î½á¹¹cn\edu\uibe\HelloWorld.class
£¨3£©set CLASSPATH=.;D:\classses£¬CLASSSPATH¸ø³öJavaѰÕÒ.classÎļþµÄ¶à¸ö·¾¶£¬Â·¾¶Ö®¼äÓ÷ֺŷָô£¬“.”±íʾµ±Ç°Â·¾¶¡£
£¨4£©java cn.edu.uibe.HelloWorld£¬×¢ÒâÐèÒª¸ø³ö°üÃû£¬ÀàÃûºóÃæ²»Òª¼Ó“.class”¡£
2. ÔĶÁÏÂÁдúÂë»Ø´ðÎÊÌ⣨¹ØÓÚprivateµÄÀí½â£©
view plaincopy to clipboardprint?
public class Light {  
    private int brightness = 5;  
    public void brighten(Light another){  
        another.brightness++;  
    }  
    public static void main(String[] args) {  
        Light light1 = new Light();  
     &nb


Ïà¹ØÎĵµ£º

CÓïÑÔºÍJAVAÒ»Ñù£¬º¯Êý²ÎÊý´«µÝ·½Ê½¶¼ÎªÖµ´«µÝ·½Ê½

¶¨Òå°´Öµ´«µÝºÍ°´ÒýÓô«µÝÕâÁ½¸öÊõÓïÊÇÖØÒªµÄ¡£
°´Öµ´«µÝÒâζ×ŵ±½«Ò»¸ö²ÎÊý´«µÝ¸øÒ»¸öº¯Êýʱ£¬º¯Êý½ÓÊÕµÄÊDzÎÊýµÄÒ»¸ö¸±±¾¡£Òò´Ë£¬Èç ¹ûº¯ÊýÐÞ¸ÄÁ˸òÎÊý£¬½ö¸Ä±ä¸±±¾£¬¶øÔ­Ê¼Öµ±£³Ö²»±ä¡£°´ÒýÓô«µÝÒâζ×ŵ±½«Ò»¸ö²ÎÊý´«µÝ¸øÒ»¸öº¯Êýʱ£¬º¯Êý½ÓÊÕµÄÊDzÎÊýµÄÄÚ´æµØÖ·£¬¶ø²»ÊDzÎÊýµÄ¸±±¾¡£Òò ´Ë£¬Èç¹ûº¯ÊýÐÞ¸ÄÁ˸òÎÊý£¬µ÷ ......

Java: class , objects

Java: class , objects
1 Inheritance(¼Ì³Ð)µÄ¹Ø¼ü×Öextends
class MountainBike extends Bicycle {
}
µ«ÊDz»ÄܶàÖØ¼Ì³Ð¡£²»¹ý¿ÉÒÔͨ¹ýimplements¶à¸öinterfaceÀ´ÊµÏÖÀàËÆµÄ¶«Î÷
2 interface
interface Bicycle {
       void changeCadence(int newValue);   // wheel rev ......

javaö¾ÙÀàÐÍÈëÃÅ

 Tiger ÖеÄÒ»¸öÖØÒªÐÂÌØÐÔÊÇö¾Ù¹¹Ô죬ËüÊÇÒ»ÖÖеÄÀàÐÍ£¬ÔÊÐíÓó£Á¿À´±íÊ¾ÌØ¶¨µÄÊý¾Ý Ƭ¶Ï£¬¶øÇÒÈ«²¿¶¼ÒÔÀàÐͰ²È«µÄÐÎʽÀ´±íʾ¡£Tiger ר¼Ò¡¢developerWorks µÄ¶à²ú×÷Õß Brett McLaughlin½«½âÊÍö¾ÙµÄ¶¨Ò壬½éÉÜÈçºÎÔÚÓ¦ÓóÌÐòÖÐÔËÓÃö¾Ù£¬ÒÔ¼°ËüΪʲôÄܹ»ÈÃÄúÅׯúËùÓоɵÄ
public static final ´úÂë¡£
¡¡ ÄúÒѾ­ ......

java µ¼³öÊý¾Ýµ½excel Ö® WritableWorkbook

ËùÐèjarÎļþΪ jxl.jar   ¿ÉÒÔÔÚ´Ë»ñÈ¡£º http://www.uushare.com/user/sudyguo/files/2209594
ÕâÖÖ·½·¨µ¼ÈëexcelЧÂʽϸߣ¬¿ÉÅúÁ¿µ¼³ö£» ¸ü¶à¸üÏêϸµÄÓ÷¨£¬¿ÉÒÔ¿´£º   http://pcedu.pconline.com.cn/empolder/gj/java/0608/853669_1.html
ʵÀý£º
´Ë¶Î´úÂëÓÃÓÚÉú³ÉexcelÎļþ
*/
WritableWor ......

Javaѧϰ֮·£º²»×ßÍä·£¬¾ÍÊǽݾ¶

 1£®ÈçºÎѧϰ³ÌÐòÉè¼Æ£¿ 
JAVAÊÇÒ»ÖÖÆ½Ì¨£¬Ò²ÊÇÒ»ÖÖ³ÌÐòÉè¼ÆÓïÑÔ£¬ÈçºÎѧºÃ³ÌÐòÉè¼Æ²»½ö½öÊÊÓÃÓÚJAVA£¬¶ÔC++µÈÆäËû³ÌÐòÉè¼ÆÓïÑÔÒ²Ò»Ñù¹ÜÓá£Óбà³Ì¸ßÊÖÈÏ
Ϊ£¬JAVAÒ²ºÃCÒ²ºÃûʲô·Ö±ð£¬ÄÃÀ´¾ÍÓá£ÎªÊ²Ã´ËûÃÇÄÜ´ïµ½Èç´Ë¾³½ç£¿ÎÒÏëÊÇÒòΪ±à³ÌÓïÑÔÖ®¼äÓй²Í¨Ö®´¦£¬Áì»áÁ˱à³ÌµÄ¾«Ë裬×ÔÈ»Äܹ»×öµ½Ò»Í¨°Ùͨ¡£
鍼 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ