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

Çë´ó¼ÒÖ¸½Ì£¬ÓйØJavaÖÐmain·½·¨¼°²ÎÊýÎÊÌâ

½ñÌìûʸɡ££¬ÄÃJavaÖеÄmainº¯ÊýÀ´Ịֽ̀¬¡£¡£»¹ÇëÖîλָµã°¡£¬£¬
public static void main(String args [])
{
 .....
}
ÕâÊÇ´ó¼ÒÒ»°ãµÄд·¨°É£¬ÕâÀïÎÒÏëÌ̵ֽÄÖ÷ÒªÓÐÒÔϼ¸µã£º
1.ËüµÄ²ÎÊýÎÊÌ⣬ÄǸö²ÎÊýµ¹µ×ÓкÎÓÃÄØ£¬£¬ÕâÊǺÜÁîÈËÃÔ»óµÄ£¬ÕâÀï×Ô¼ºÐ´Á˸öÀý×ÓÊÔÁËһϣ¬µ«ÊdzöÏÖÁËÒì³££º
 class A
{
  public static void main(String args [])
  {
   
   for(int i=0;i<args.length;i++)
   {
     System.out.println(args[i]);
    
   }
   
   
  }
   
   
}
public class ArgsDemo
{
 public static void main(String args [])
 {
  String s[]={"I","am","a","good","boy"};
        A  a=new A();
      a.main(s);
  
 }
 
}
Òì³£ÈçÏ£º
  java.lang.NoClassDefFoundError: A
Caused by: java.lang.ClassNotFoundException: A
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: A.  Program will exit.
Exception in thread "main"
Process completed.
2.static ±íʾËüÊÇÒ»¸ö¾²Ì¬·½·¨£¬ÄÇôËüµ¹µ×´æÔÚÄÚ´æµÄÄĸöÇø£¬ÔÙÒ»¸öÀ໹ûÓÐʵÀý»¯Ò»¸ö¶ÔÏó֮ǰ£¬ËüÊÇ·ñÒѾ­´æÔÚÄØ~~
СµÜ¸Õ¿ªÊ¼Ñ§Ï°Java£¬ÊµÔÚÊÇÃÔ»ó£¬Ï£Íû¸ßÊÖ²»Áߴͽ̣¬²»Ê¤¸Ð¼¤°¡¡£¡£¡£


Ïà¹ØÎĵµ£º

Java SE 6 ÐÂÌØÐÔ: ¶Ô½Å±¾ÓïÑÔµÄÖ§³Ö


Java ½Å±¾ API ¸ÅÊö
½Å±¾ÒýÇæ
½Å±¾ÒýÇæ¾ÍÊÇÖ¸½Å±¾µÄÔËÐл·¾³£¬ËüÄÜÄܹ»°ÑÔËÐÐÆäÉϵĽâÊÍÐÔÓïÑÔת»»Îª¸üµ×²ãµÄ»ã±àÓïÑÔ£¬Ã»Óнű¾ÒýÇ棬½Å±¾¾ÍÎÞ·¨±»ÔËÐС£
Java SE 6 ÒýÈëÁË¶Ô Java Specification Request£¨JSR£©223 µÄÖ§³Ö£¬JSR 223 Ö¼ÔÚ¶¨ÒåÒ»¸öͳһµÄ¹æ·¶£¬Ê¹µÃ Java Ó¦ÓóÌÐò¿ÉÒÔͨ¹ýÒ»Ì׹̶¨µÄ½Ó¿ÚÓë¸÷Öֽű ......

Java count down

public static void main(String[] args){
SimpleDateFormat da = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
Calendar calendar = Calendar.getInstance();
Date date = calendar.getTime();
String aimTime ="2010-02-03 17:30:00.000";
int count = 0;
Date aimDate = d ......

Java SwingÖеÄJTreeÄ£ÐÍ

±¾ÎĽéÉÜJava SwingÖеÄJTreeÄ£ÐÍ£¬½éÉÜÈçºÎ´´½¨¡¢Ð޸ġ¢±éÀú£¬ÉèÖÃÊ÷¡£²Î¿¼Core Java2Ïà¹ØÕ½ڼ°ÆäÔ´´úÂë¡£
SwingÊ÷ʹÓÃÈËÃÇËùÊìϤµÄÎļþ¼ÐºÍÊ÷ҶͼÀ´ÏÔʾ·Ö²ãµÄÊý¾Ý¡£Ê÷Óɽڵã×é³É£¬½Úµã¿ÉÒÔÊÇÎļþ¼Ð£¬Ò²¿ÉÒÔÊÇÊ÷Ò¶¡£Îļþ¼Ð¿ÉÒÔÓÐ×ӽڵ㣬³ý¸ù½ÚµãÖ®ÍâµÄËùÓнڵ㶼ֻÓÐÒ»¸ö¸¸½Úµã¡£¿ÕµÄÎļþ¼ÐÓëÊ÷Ò¶µÄ²»Í¬Ö®´¦¾ÍÔÚÓÚËüÔÊ ......

JavaȨÏÞ¿ØÖÆËã·¨

ÕâÀïÎÒ½éÉÜÒ»Öֺܳ£Óã¬Ò²±È½ÏProfessorµÄȨÏÞ¿ØÖÆ˼·¡£
ÕâÀïÎÒÓÃjavaÓïÑÔÃèÊö£¬Æäʵ¶¼²î²»¶àµÄ¡£×Ô¼º×ªÒ»Ï¾ͿÉÒÔÁË¡£
ΪÁË·½±ã£¬ÎÒÃÇÕâÀﶨÒåa^bΪ£ºaµÄb´Î·½
ÕâÀÎÒÃÇΪÿһ¸ö²Ù×÷É趨һ¸öΨһµÄÕûÊýÖµ£¬±ÈÈ磺
ɾ³ý£Á£­£­£­0
Ð޸ģÁ£­£­£­1
Ìí¼Ó£Á£­£­£­2
ɾ³ý£Â£­£­£­3
Ð޸ģ£­£­£­4
Ìí¼Ó£Â£­£­£­5
¡£¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ