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

java»·¾³±äÁ¿ÅäÖü°µÚÒ»¸öjava³ÌÐò

À´CSDNÒ²ÓÐÒ»Äêʱ¼äÁË£¬Ò»Ö±Ã»ÓÐÔÚ×Ô¼ºµÄ¿Õ¼äÀï·¢±íÒ»µã¶«Î÷¡£
Ç°¼¸Ì죬ÎÒÅóÓÑÏëºÍÎÒÒ»Æð¸ã¸ö¶«Î÷£¬ÐèÒªÓõ½java£¬ÎÒûÓÐÒ»µãjava»ù´¡¡£Ã»°ì·¨£¬Ö»Äܹ»´ÓÍ·¿ªÊ¼ÁËѧϰ¡£
´ÓͼÊé¹Ý±§»ØÁËÁ½±¾Ê顶java2ÈëÃÅ ½ø½×ÓëÓ¦ÓÃʵÀý¡·ºÍ¡¶java me ʵÓÃÏê½â¡·¡£ÓÉÓÚÓÐCºÍC++µÄ»ù´¡£¬³õÂÔ¿´ÁËÒ»ÏÂÊ飬¶ÔÓÚÊéÖеÄÄÚÈÝ»ù±¾ÉÏ»¹ÊÇÄܹ»Àí½â¡£
ÏÈ°´ÕÕÊéÉϵÄÒªÇó£¬Ð´µÚÒ»¸öjavaÈëÃųÌÐò¡£
ÔÚд³ÌÐò֮ǰ£¬Ê×ÏÈÐèÒªÅäÖÃjava»·¾³¡£
1¡¢´ÓÍøÉÏÏÂÔØÁËjdk-6u17-windows-i586.exe¹¤¾ß¡£
2¡¢°´ÕÕĬÈÏÉèÖÃÖ±½Ó°²×°ÔÚCÅÌÏ¡£
3¡¢ÅäÖÃϵͳ»·¾³±äÁ¿¡£
     ÔÚXPÏ£¬ÓÒ»÷¡¾ÎҵĵçÄÔ¡¿->¡¾¸ß¼¶¡¿->¡¾»·¾³±äÁ¿¡¿½øÈë»·¾³±äÁ¿¶Ô»°¿ò¡£
     Ôړϵͳ±äÁ¿”ϵ¥»÷“н¨”£¬ÔÚ±äÁ¿ÃûÄÚÌîÈë"JAVA_HOME",±äÁ¿ÖµÄÚÌîÈëJDKµÄ°²×°Â·¾¶£¬Ä¬ÈÏÇé¿öÏÂΪ£ºC:\Program Files\Java\jdk1.6.0_17
     Ôړϵͳ±äÁ¿”ϵ¥»÷“н¨”£¬ÔÚ±äÁ¿ÃûÄÚÌîÈë“PATH”£¬±äÁ¿ÖµÄÚÌîÈë“;%JAVA_HOME%\bin;”
    Ôړϵͳ±äÁ¿”ϵ¥»÷“н¨”£¬ÔÚ±äÁ¿ÃûÄÚÌîÈë“CLASS_PATH”£¬±äÁ¿ÖµÄÚÌîÈë"%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar"
×îºóΪÁ˲âÊÔÊÇ·ñ»·¾³±äÁ¿ÅäÖóɹ¦£¬ÔÚDOSÏÂÊäÈëjavac -versionÏÔʾÁËJDKµÄ°æ±¾ÐÅÏ¢¡£
µÚÒ»¸ö³ÌÐòµÄ±àд£º
ÓüÇʱ¾×÷Ϊ±à¼­Æ÷£¬ÊäÈ룺
/*
This is my first Java application. It displays
some words to the standard output.
*/
public class sayhello{
   public static void main(String[] args){
      //display the string.
      System.out.println("hello, it’s my first application!\n");
   }
}
±£´æÎļþÃûΪsayhello.java£¬
ÔÚDOSϽøÈëÎļþËùÔÚĿ¼£¬ÊäÈëjavac sayhello.java¡£
ûÓдíÎóÌáʾÐÅÏ¢ºó£¬Ö±½ÓÔËÐгÌÐò£¬java  sayhello¡£
½á¹û“hello,it 's my first application”¡£
¹ØÓÚ¾ßÌå³ÌÐòº¬ÒåÎÒÄܹ»Àí½â£¬Ò²ºÜ¼òµ¥£¬¾Í²»¶à˵ÁË¡£


Ïà¹ØÎĵµ£º

javaÀïÃæһЩÄãÒ²Ðí»¹²»ÖªµÀµÄ¶«Î÷

JavaÀïÃæµÄdnd;
 ½çÃæ±à³ÌÀïÃæÄÜÊìÁ·µÄÔËÓõÄÈ˲»¶à,¶ø¶ÔJavaÖеÄÍÏק֪¸ùÖªµ×µÄÈ˾͸üÉÙÁËÎÒµÄһƪ ÎÄÕÂ-- JavaÖеÄDrag and DropÏê½âÓë´úÂëʾÀý ÀïÃæÓÐÏêϸ½éÉÜ.
java.awt.MouseInfo, java.awt.PointerInfo;
 ÎÒÔø¾­ÏëµÃµ½Êó±êÔÚÆÁÄ»Éϵľø¶ÔλÖÃ,ÎÒÊÔ¹ýͨ¹ýÔÚMouseListenerÀïÃæµÃµ½Êó±êÔÚÒ»¸ö¿Ø¼þÀïÃæµÄÏච......

Java AnnotationÈëÃÅ

ͻ񻣼
±¾ÎÄÕë¶Ôjava³õѧÕß»òÕßannotation³õ´ÎʹÓÃÕßÈ«ÃæµØ˵Ã÷ÁËannotationµÄʹÓ÷½·¨¡¢¶¨Ò巽ʽ¡¢·ÖÀà¡£³õѧÕß¿ÉÒÔͨ¹ýÒÔÉϵÄ˵Ã÷ÖÆ×÷¼òµ¥µÄannotation³ÌÐò£¬µ«ÊǶÔÓÚһЩ¸ß¼¶µÄannotationÓ¦Óã¨ÀýÈçʹÓÃ×Ô¶¨ÒåannotationÉú³ÉjavabeanÓ³ÉäxmlÎļþ£©»¹ÐèÒª½øÒ»²½µÄÑо¿ºÍ̽ÌÖ¡£Éæ¼°µ½ÉîÈëannotationµÄÄÚÈÝ£¬×÷Õß½«ÔÚºóÎÄ¡ ......

Java URLÕýÔò±í´ïʽ

 ÍøÉÏתÌùµÄJavaÕýÔòºÜÈÃÈËʧÍû£¬Ò»ÆªJavaScriptÕýÔò¼¯Â¼±»ºÜ¶à²»¸ºÔðÈεÄÈËתÀ´×ªÈ¥£¬²¢´òÉÏJavaÕýÔòµÄ±êÌ⣬º¹£¬ÕæÊÇÀÃÈËÒ»¶Ñ¡£
// urlÕýÔò
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class RegularExpressionTest {

public static void main(String[] args) {

Pa ......

Oracleµ÷ÓÃJava´úÂë

 OracleÖпÉÒÔµ÷ÓÃJavaµÄ´úÂ룬һ°ãͨ¹ýÁ½ÖÖ·½Ê½½øÐе÷Óã¬Ò»¸öÊÇÖ±½Ó½«Java´úÂëдÔÚOracleÄÚ²¿£¬ÁíÍâÒ»ÖÖÊǽ«±àÒëºÃµÄclassÎļþÔØÈëµ½OracleÖС£
-A-
1¡¢ÔÚSQLPlusÖд´½¨OracleÖеÄJavaÀàÓë·½·¨£¨·½·¨±ØÐëÊǾ²Ì¬¹«Óз½·¨£©
create or replace and compile java source named hello as
public class Hello {
pu ......

java ±£Áô2λСÊý

java  ±£Áô2λСÊý  תÔØ
·½Ê½Ò»£º
ËÄÉáÎåÈë
double   f   =   111231.5585;
BigDecimal   b   =   new   BigDecimal(f);
double   f1   =   b.setScale(2,   BigDecimal.ROUND_HALF_UP). ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ