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

Java±ä³¤²ÎÊý

ÔÚJava5ÖÐÌṩÁ˱䳤²ÎÊý£¬Ò²¾ÍÊÇÔÚ·½·¨¶¨ÒåÖпÉÒÔʹÓøöÊý²»È·¶¨µÄ²ÎÊý£¬¶ÔÓÚͬһ·½·¨¿ÉÒÔʹÓò»Í¬¸öÊýµÄ²ÎÊýµ÷Óã¬ÀýÈ磺print("hello");print("hello","lisi");print("hello","ÕÅÈý");ÏÂÃæ½éÉÜÈçºÎ¶¨Òå¿É±ä³¤²ÎÊýÒÔ¼°ÈçºÎʹÓÿɱ䳤²ÎÊý¡£
1¡¢¿É±ä³¤²ÎÊý·½·¨µÄ¶¨Òå
ʹÓÃ...±íʾ¿É±ä³¤²ÎÊý£¬ÀýÈç
print(String... args){
   ...
}
ÔÚ¾ßÓпɱ䳤²ÎÊýµÄ·½·¨ÖпÉÒ԰ѲÎÊýµ±³ÉÊý×éʹÓã¬ÀýÈç¿ÉÒÔÑ­»·Êä³öËùÓеIJÎÊýÖµ¡£
print(String... args){
   for(String temp:args)
      System.out.println(temp);
}
2¡¢¿É±ä³¤²ÎÊýµÄ·½·¨µÄµ÷ÓÃ
µ÷ÓõÄʱºò¿ÉÒÔ¸ø³öÈÎÒâ¶à¸ö²ÎÊý£¬ÀýÈ磺
print("hello");
print("hello","lisi");
print("hello","ÕÅÈý");
3¡¢×¢ÒâÊÂÏî
3.1 ÔÚµ÷Ó÷½·¨µÄʱºò£¬Èç¹ûÄܹ»ºÍ¹Ì¶¨²ÎÊýµÄ·½·¨Æ¥Å䣬ҲÄܹ»Óë¿É±ä³¤²ÎÊýµÄ·½·¨Æ¥Å䣬ÔòÑ¡Ôñ¹Ì¶¨²ÎÊýµÄ·½·¨¡£¿´ÏÂÃæ´úÂëµÄÊä³ö£º
package ch6;
import static java.lang.System.out;
public class VarArgsTest {
 public static void main(String[] args) {
  VarArgsTest test = new VarArgsTest();
  test.print("hello");
  test.print("hello","zhangsan");
 }
 
 public void print(String... args){
  for(int i=0;i<args.length;i++){
   out.println(args[i]);
  }
 }
 
 public void print(String test){
  out.println("----------");
 }
}
3.2 Èç¹ûÒªµ÷Óõķ½·¨¿ÉÒÔºÍÁ½¸ö¿É±ä²ÎÊýÆ¥Å䣬Ôò³öÏÖ´íÎó£¬ÀýÈçÏÂÃæµÄ´úÂ룺
package ch6;
import static java.lang.System.out;
public class VarArgsTest {
 public static void main(String[] args) {
  VarArgsTest test = new VarArgsTest();
  test.print("hello");
  test.print("hello","zhangsan");
 }
 
 public void print(String... args){
  for(int i=0;i<args.length;i++){
   out.println(args[i]);
  }
 }
 
 public void print(String test,String...args ){
  out.println("----------");
 }
}
¶ÔÓÚÉÏÃæµÄ´úÂ룬main·½·¨ÖеÄÁ½¸öµ÷Óö¼²»ÄܱàÒëͨ¹ý¡£
3.3 Ò»


Ïà¹ØÎĵµ£º

ÂÛJAVA¸ßн¾ÍÒµ

       ĿǰºÜ¶àѧÉúÃæÁÙמÍÒµµÄÎÊÌ⣬µ±È»£¬ÏñÎÒÒ»ÑùµÄ¸Õ±ÏÒµµÄ´óѧÉúÒ²²»ÀýÍâ¡£´óѧʱѧµÄÊǼÆËã»úרҵµÄ£¬´óѧËÄÄê×ÜÒÔΪ°Ñרҵ¿ÎѧºÃ£¬±ÏÒµÁ˾ͿÉÒÔÕÒµ½Ò»·Ý²»´íµÄ¹¤×÷¡£
       ¿ÉÊǼ¸¸öÔÂÃæÊԵĽÓÁ¬Åö±Ú£¬Ê¹ÎҸе½´óѧÀïѧµÄרҵ֪ʶÀíÂÛÐÔ̫ǿ£¬Êµ¼Ê ......

2010.5.27¼Ç£¨jbpm4.3²¿ÊðÎÊÌâ,javaÖеÄspilt·½·¨£©

ÕÐÉÌÏîÄ¿ÐèÒªÒý½øÒ»¸ö¹¤×÷Á÷£¬×î½üÔÚÍùÉϵ÷ÑпªÔ´µÄ¹¤×÷Á÷ÒýÇæ£¬×ܽá±È½ÏÁ÷ÐÐÒ»¹²ÓÐ3¸ö¡£
ÆäÖÐÒ»¸öÊÇosworkflow£¬µ«ÊÇÓÉÓںܳ¤Ê±¼ä²»ÔÙ¸üУ¬ËùÒÔÑ¡Ôñ·ÅÆú¡£ÁíÍâÒ»¸ö¾ÍÊÇjbmp4.3£¬¿ªÁ˺ܶàµÄ×ÊÁÏ»¹ÓÐÊÓÆµ£¬·¢ÏÖÆäÖкܶණÎ÷Àí½âÀ§ÄÑ£¬»¹ÓÐÒ»¸öÎÊÌâ¾ÍÊÇËüµÄ³Ö¾Ã²ãÊÇhibernate×öµÄ£¬±¾ÏëÏÈǰÏëÓÃibatisµÄ¡£¹À¼ÆÒªÊÇÕæµÄÒý½ø¹ ......

»ùÓÚJavaµÄÈ«ÎļìË÷ÒýÇæ¼ò½é


LuceneÊÇÒ»¸ö»ùÓÚJavaµÄÈ«ÎÄË÷Òý¹¤¾ß°ü¡£
»ùÓÚJavaµÄÈ«ÎÄË÷ÒýÒýÇæLucene¼ò½é£º¹ØÓÚ×÷ÕߺÍLuceneµÄÀúÊ·
È«ÎļìË÷µÄʵÏÖ£ºLueneÈ«ÎÄË÷ÒýºÍÊý¾Ý¿âË÷ÒýµÄ±È½Ï
ÖÐÎÄÇзִʻúÖÆ¼ò½é£º»ùÓÚ´Ê¿âºÍ×Ô¶¯ÇзִÊËã·¨µÄ±È½Ï
¾ßÌåµÄ°²×°ºÍʹÓüò½é£ºÏµÍ³½á¹¹½éÉܺÍÑÝʾ
Hacking Lucene£º¼ò»¯µÄ²éѯ·ÖÎöÆ÷£¬É¾³ýµÄʵÏÖ£¬¶¨ÖƵÄÅÅÐò£ ......

javaÓëģʽ ¶ÁÊé±Ê¼Ç£¨×ªÔØ£©

ÖйúÊÇÒ»¸öº¬ÐîµÄÃñ×壬´¦¶ÔÏóÒ»°ã¶¼µÃͨ¹ýÒ»¸ö½éÉÜÈË¡£
ÕâÊÇÒ»±¾²ûÊö΢¹ÛÉè¼ÆµÄÊ飬¶ø²»ÊDzûÊöºê¹ÛÉè¼ÆµÄÊé¡£
¡¶JavaÓëģʽ¡·Ê×ÏȲûÊöÁË´úÂëµÄÉè¼ÆÔ­Ôò£¬ÓÖÃèÊöÁËÔõÑùÀ´´´½¨Ò»¸öÀà»ò¶ÔÏ󣬽ô½ÓןæËß´ó¼ÒÔõÑùÀ´×éÖ¯ÕâЩÀàºÍ¶ÔÏóÀ´ÊµÏÖ¹¦ÄÜ¡£ËüÊÇÉè¼ÆÄ£Ê½£¬¶ø²»ÊǼܹ¹Ä£Ê½¡£
OO
ÃæÏò¶ÔÏó±à³Ì£¬ÊµÖÊÉÏÊÇÃæÏò³éÏó±à³Ì£¬¼´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ