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

ÓÃJava´úÂë²é¿´ÏµÍ³Ä¬ÈÏ×Ö·û¼¯±àÂë

public class EchoDefaultSystemEncoding
{
    public static void main(String[] args)
    {
           String encoding = System.getProperty("file.encoding");
           System.out.println("Default System Encoding:" + encoding);
    }
}


Ïà¹ØÎĵµ£º

ÔÚEclipseÖÐÓÃJavaʵÏÖ°ÙÁ鱨±í(BIRT)µÄʼþ´¦Àí

8. µ±ÏµÍ³´¦ÀíÍê³Éºó£¬±¨±í±»ÏÔʾ³öÀ´¡£ÕâÊÇÒ»·ÝÉÌÆ·ÏúÊÛ±¨¸æ£¬ÏÔʾµÄÊÇÿÀàÉÌÆ·µÄ¼¾¶ÈÏúÊÛ¶îÒÔ¼°ÀÛ¼ÆÇé¿ö¡£½ÓÏÂÀ´£¬ÎÒÃdz¢ÊÔÓà Java
´´½¨Ò»¸öʼþÏìÓ¦´¦ÀíÀ࣬°Ñÿ¼¾¶ÈÏúÊÛ¶îÔÚ10ÍòÃÀÔªÒÔÉϵÄÊý¾ÝÓúìÉ«±êʾ³öÀ´¡£
´´½¨ Java Àà
    °´ÕÕÈçϲ½Ö裬Óà Java ´´½¨°ÙÁ鱨±í£¨BIRT£©µÄʼþÏìÓ¦´¦Àí³ÌÐò¡£
......

java ´íÎó´úÂëÌáʾ

 //=============================Êä³öÆæÊý
public class OddTest {
public static boolean isOdd(int i){
return i % 2 != 0; //±È½Ï i % 2 == 0;×¢£º -1%2 = -1
}
public static void main(String[] args) {
for(int i = -10; i <= 10; i++) {
System.out.println(isOdd(i));
}
}
}
// ......

oracle ·µ»ØÒ»¸öjava¶ÔÏ󣬺ͷµ»Ø¶à¸öjava¶ÔÏóµÄ·½·¨

·µ»Ø¶à¸ö¶ÔÏó£º
    PROCEDURE AUTO_SEL_INVOICE_DETAIL(
  P_RESULT_LIST OUT SYS_REFCURSOR) AS
    BEGIN
    OPEN P_RESULT_LIST FOR
   SELECT DISTINCT CC.CHARGE_COLLECTION_ID CHARGE_COLLECTION_ID, CC.COLLECT_DATE COLLECT_DATE, C ......

JavaÄÚ´æ¹ÜÀí»úÖÆÓëGC

 
JavaÊÇÈçºÎ¹ÜÀíÄÚ´æ
ΪÁËÅжÏJavaÖÐÊÇ·ñÓÐÄÚ´æÐ¹Â¶£¬ÎÒÃÇÊ×ÏȱØÐëÁ˽âJavaÊÇÈçºÎ¹ÜÀíÄÚ´æµÄ¡£JavaµÄÄÚ´æ¹ÜÀí¾ÍÊǶÔÏóµÄ·ÖÅäºÍÊÍ·ÅÎÊÌâ¡£ÔÚJavaÖУ¬³ÌÐòÔ±ÐèҪͨ¹ý¹Ø¼ü×ÖnewΪÿ¸ö¶ÔÏóÉêÇëÄÚ´æ¿Õ¼ä (»ù±¾ÀàÐͳýÍâ)£¬ËùÓеĶÔÏó¶¼ÔÚ¶Ñ (Heap)ÖзÖÅä¿Õ¼ä¡£ÁíÍ⣬¶ÔÏóµÄÊÍ·ÅÊÇÓÉGC¾ö¶¨ºÍÖ´Ðеġ£ÔÚJavaÖУ¬ÄÚ´æµÄ·ÖÅäÊ ......

javaÃæÊÔÌ⣬ÖÊÊýÇóºÍ

public class Test {
 /**
  * @param args
  */
 public static void main(String[] args) {
  /**
   * ÇóÖÊÊýºÍ£¬
   * Èç:
   * sum(1)=2=2
   * sum(2)=2+3=5
   * sum(3)=2+3+5=10
   * sum(4)=2+3+5+7=17
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ