Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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


Ïà¹ØÎĵµ£º

ÓÃjavaʵÏÖcache


ÔÚ¿ª·¢ÏîÄ¿¹¤³Ìʱ£¬¾­³£»áÓöµ½±£´æijЩֵ·Åµ½ÏµÍ³µÄcacheÖУ¬ÏÖÓÃCache.javaºÍCacheManager.javaÀ´¹ÜÀí¡£¾ßÌå´úÂë·Ö±ðÈçÏ£º
public class Cache {
       
private String key;
       
private Object value;
    &n ......

ÀûÓÃphpÖеÄevalÀ´Ä£ÄâjavaÖеĶ¯Ì¬´úÀí

ʹÓÃjavaÖеĶ¯Ì¬´úÀí¿ÉÒÔÍê³ÉºÜ¶àÊÂÇ飬±ÈÈ罫ҵÎñʵÀý½øÐÐÍйܣ¬ÊµÏÖAOPµÈ£¬µ«ÊÇPhpÖÐûÓÐʵÏÖÕâÑùµÄ¶«Î÷£¬×òÌìͻȻÏëµ½Æäʵ¿ÉÒÔͨ¹ýevalÀ´Ä£ÄâÒ»¸ö¶¯Ì¬´úÀí»úÖÆ¡£php±Èjava²»Í¬µÄÊÇ£¬phpÊDz»ÐèÒª±àÒëµÄ£¬Òò´ËÖ»ÒªÎÒÃÇÄܹ»¶¯Ì¬Éú³ÉÒ»¶Î´úÂ룬ȻºóÓÃevalÀ´Ö´ÐоͿÉÒԴﵽЧ¹û¡£´úÂëÈçÏ£º
/**
* ´úÀíʵÏÖÀà
*/
inter ......

Java FX ±àд½Å±¾

½Å±¾±äÁ¿ÊÇʹÓà var »ò def ¹Ø¼ü×ÖÉùÃ÷µÄ¡£
¶þÕßÖ®¼äµÄÇø±ðÔÚÓÚ£ºÔڽű¾µÄÕû¸öÉúÃüÖÜÆÚÄÚ¶¼¿ÉÒÔΪ var ±äÁ¿¸³ÓèÐÂÖµ£¬
¶ø def ±äÁ¿ÔÚ±»Ê״θ³ÓèÐÂÖµºó½«±£³Ö²»±ä£»
def numOne = 100;
def numTwo = 2;
var result;
add();
subtract();
multiply();
divide();
function add() {
result = numOne + numTwo; ......

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

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

Java »­ÏßÉèÖôÖϸ¡¢ÑÕÉ«

Graphics2D arg£»
float thick=3.0f;
arg1.setStroke(new BasicStroke(thick, BasicStroke.CAP_SQUARE, BasicStroke.JOIN_ROUND));
arg1.drawLine(first.x, first.y, next.x, next.y);
arg1.setColor(Color.red);
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ