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

javaÖµ´«µÝÓëÒýÓô«µÝ


1¡¢¶ÔÏóÊǰ´ÒýÓô«µÝµÄ---´ø"="ºÅµÄ¸³Öµ²Ù×÷
2¡¢Java Ó¦ÓóÌÐòÓÐÇÒ½öÓеÄÒ»ÖÖ²ÎÊý´«µÝ»úÖÆ£¬¼´°´Öµ´«µÝ---ÓÉ"º¯Êýµ÷ÓÃ"ÒýÆðµÄ
3¡¢°´Öµ´«µÝÒâζ×ŵ±½«Ò»¸ö²ÎÊý´«µÝ¸øÒ»¸öº¯Êýʱ£¬º¯Êý½ÓÊÕµÄÊÇԭʼֵµÄÒ»¸ö¸±±¾
4¡¢°´ÒýÓô«µÝÒâζ×ŵ±½«Ò»¸ö²ÎÊý´«µÝ¸øÒ»¸öº¯Êýʱ£¬º¯Êý½ÓÊÕµÄÊÇԭʼֵµÄÄÚ´æµØÖ·£¬¶ø²»ÊÇÖµ µÄ¸±±¾
5¡¢×¢Ò⣺StringËäÊǶÔÏ󣬵«ÓÀÔ¶ÊÇ´«Öµ
    Ê×ÏÈÎÒÃÇÀ´¿´¿´µÚÒ»µã£º¶ÔÏóÊǰ´ÒýÓô«µÝµÄȷʵ£¬ÕâÒ»µãÎÒÏë´ó¼ÒûÓÐÈκÎÒÉÎÊ£¬ÀýÈ磺
    class Test01
    {
    public static void main(String[] args)
    {
    StringBuffer s= new StringBuffer("good");
    StringBuffer s2=s;
    s2.append(" afternoon.");
    System.out.println(s);
    }
    }
    ¶ÔÏósºÍs2Ö¸ÏòµÄÊÇÄÚ´æÖеÄͬһ¸öµØÖ·Òò´ËÖ¸ÏòµÄÒ²ÊÇͬһ¸ö¶ÔÏó¡£
    ÈçºÎ½âÊÍ“¶ÔÏóÊǰ´ÒýÓô«µÝµÄ”µÄÄØ£¿
    ÕâÀïµÄÒâ˼ÊǽøÐжÔÏó¸³Öµ²Ù×÷ÊÇ´«µÝµÄÊǶÔÏóµÄÒýÓã¬Òò´Ë¶ÔÏóÊǰ´ÒýÓô«µÝµÄ£¬ÓÐÎÊÌâÂð£¿
    ³ÌÐòÔËÐеÄÊä³öÊÇ£º
    good afternoon.
    Õâ˵Ã÷s2ºÍsÊÇͬһ¸ö¶ÔÏó¡£
    ÕâÀïÓÐÒ»µãÒª³ÎÇåµÄÊÇ£¬ÕâÀïµÄ´«¶ÔÏóÆäʵҲÊÇ´«Öµ£¬ÒòΪ¶ÔÏó¾ÍÊÇÒ»¸öÖ¸Õ룬Õâ¸ö¸³ÖµÊÇÖ¸ÕëÖ®¼äµÄ¸³Öµ£¬Òò´ËÔÚjavaÖоͽ«Ëü˵³ÉÁË´«ÒýÓᣣ¨ÒýÓÃÊÇʲô£¿²»¾ÍÊǵØÖ·Â𣿵ØÖ·ÊÇʲô£¬²»¹ý¾ÍÊÇÒ»¸öÕûÊýÖµ£©
    ÔÙ¿´¿´ÏÂÃæµÄÀý×Ó£º
    class Test02
    {
    public static void main(String[] args)
    {
    int i=5;
    int i2=i;
    i2=6;
    System.out.println(i);
    }
    }
    ³ÌÐòµÄ½á¹ûÊÇʲô£¿5£¡£¡£¡
    Õâ˵Ã÷ʲô£¬Ô­Ê¼Êý¾ÝÀàÐÍÊǰ´Öµ´«µÝµÄ£¬Õâ¸ö°´Öµ´«µÝÒ²ÊÇÖ¸µÄÊǽøÐи³ÖµÊ±µÄÐÐΪ¡£
    ÏÂÒ»¸öÎÊÌ⣺Java Ó¦ÓóÌÐòÓÐÇÒ½öÓеÄÒ»ÖÖ²ÎÊý´«µÝ»úÖÆ£¬¼´°´Öµ´«µÝ
&nb


Ïà¹ØÎĵµ£º

c++ÓëjavaµÄ¹¹Ô캯Êý

½ñÌì¼ÌÐøÑ§Ï°javaºÍandroidƽ̨  javaµÄѧϰËãÊDz¹³ä£¬ÒòΪûÓÐjava»ù´¡Ò²×ö²»³öʲô¶«Î÷À´
½ñÌì¿´µ½javaÓÃthis¹Ø¼ü×ÖÀ´ÖØÔع¹Ôì·½·¨£¬ÔÚÕâÀï×ö¸ö±Ê¼Çclass a_sample{
public int x,y.z;
a_sample(int x){
this.x=x;
}
a_sample(int x,int y){
this(x);
this.y=y;
}
a_sample(int x ......

Java»ù±¾Êý¾ÝÀàÐÍ

 ±äÁ¿,³£Á¿µÄ¸ÅÄî

  JavaÓïÑÔÖÐÓÐÎåÖÖ²»Í¬ÀàÐ͵ij£Á¿,

 
•1ÕûÐͳ£Á¿:ÈκÎÒ»¸öÕûÐÍÊý×Ö¾ÍÊÇÒ»¸öÕûÐͳ£Á¿.
–JavaÓïÑÔÖÐ,ÕûÐͳ£Á¿ÓÐÈýÖÖ±íʾ·½Ê½:
•Ê®½øÖÆ:0,1,2,3,4,5,6,7,8,9,10,11,12…¶¼ÊÇÊ®½øÖƵij£Á¿
•°Ë½øÖÆ:°Ë½øÖÆ¿ÍÁ÷Á¿Ö»ÄÜÓÃ0,1,2,3,4,5,6,7À ......

java ʹÓÃeval.jar½âÎö¹«Ê½

eval.jar ÐèÒªµ½https://eval.dev.java.net/
ÏÂÔØ
--ÏÂÃæÊÇʾÀýʹÓã¬Ö§³ÖÖÐÎıäÁ¿
Expression exp = new
Expression("(x + y)/2"
);

Map<String, BigDecimal> variables = new
HashMap<String, BigDecimal>();
variables.put("x", new
BigDecimal("4.32"
)); ......

JavaÖÐÆæ¹Ö¶øÓÖÎ޿ɺñ·ÇµÄÀà¼ÓÔØË³Ðò

×òÌì¿´µ½ÕâÑùһƪÌû×Ó£¬ÌÖÂÛÀà¼ÓÔØË³ÐòµÄ£¬Ò²¿ÉÒÔ˵Êdzõʼ»¯Ë³ÐòµÄ£¬½ñÌìÔçÉÏÕÒ²»µ½ÁË£¬±¾À´Ïë»Ø¸´µÄ£¬ÏÖÔÚ×Ô¼ºÐ´²©¿Í»Ø¸´ÁË£¬ºÇºÇ
public class Singleton {   
private static Singleton obj = new Singleton();   
public static int counter1 ;   
public static int counter2 = 0;& ......

Java СÊý¾«È·¼ÆËãÎÊÌâ

System.out.println(2.00 -1.10);//0.8999999999999999
ÉÏÃæµÄ¼ÆËã³öµÄ½á¹û²»ÊÇ0.9£¬¶øÊÇÒ»Á¬´®µÄСÊý¡£ÎÊÌâÔÚÓÚ1.1 Õâ¸öÊý×Ö²»Äܱ»¾«È·±íʾ
Ϊһ¸ödouble£¬Òò´ËËü±»±íʾΪ×î½Ó½üËüµÄdouble Öµ£¬¸Ã³ÌÐò´Ó2 ÖмõÈ¥µÄ¾ÍÊÇÕâ¸öÖµ£¬
µ«Õâ¸ö¼ÆËãµÄ½á¹û²¢²»ÊÇ×î½Ó½ü0.9 µÄdoubleÖµ¡£
Ò»°ãµØËµ£¬ÎÊÌâÔÚÓÚ²¢²»ÊÇËùÓеÄСÊý¶¼¿ÉÒ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ