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

JAVAÖеÄArray.sort£¨£©·½·¨

»¨Á˵ãʱ¼äÈ¥Ñо¿£¬Ò²ËãСÓÐÊÕ»ñ£º
Arrays.sort()·½·¨ÔÚJDKÀïÓкܶ࣬ÆäÖÐ×ÅÖØËµÏÂ
static void
sort(Object[] a)
static
<T> void
sort(T[] a, Comparator<? super T> c)
ǰÕß²ÎÊýÖеÄÊý×éaÖеÄËùÓÐÔªËØ±ØÐëʵÏÖcomparable½Ó¿Ú£¬¿ÉÒÔÖØÔØcomparableµÄ·½·¨compareTo£¨£©¡£
ºóÕß²ÎÊýÖеÄÊý×éaÖеÄËùÓÐÔªËØ±ØÐëʵÏÖcomparable½Ó¿Ú£»²ÎÊýÖеÄComparatorÒýÓÃc ÊÇ¿ØÖÆÅÅÐò˳ÐòµÄ£¬¿ÉÒÔͨ¹ýʵÏÖComparatorÈ»ºóÖØÔØÆäcompare·½·¨À´¶¨Òå¡£
Èô²»ÖØÔرȽϷ½·¨£¬Ôò½á¹ûΪ×ÔÈ»ÅÅÐò¡£


Ïà¹ØÎĵµ£º

c#Óëjava²í·¸ÃÈçºÎÑ¡Ôñ

¼´½«Òª×ßÉϹ¤×÷¸ÚλÁË£¬µ«ÊÇ×Ô¼º»¹ÔÚÓÌÔ¥Öе½µ×ÊÇÑ¡Ôñc#»¹ÊÇjava£¬¶¼ËµjavaÒÔºóµÄǰ¾°·Ç³£µÄÀÖ¹Û£¬Ö÷ÒªÊÇÌåÏÖÔÚÒÆ¶¯Í¨ÐÅÆ½Ì¨ÉÏ£¬µ«ÊÇC#×÷Ϊ΢ÈíµÄ“ɱÊÖïµ”£¬Óë´Ëͬʱ΢Èí×÷Ϊҵ½çÀÏ´óµÄµØÎ»Ë­ÓÖÄܺ³¶¯ÄÄ£¬Î´À´µÄÔÆ¼ÆËã¶Ô¼ÆËã»úÖÕ¶ËÆ½Ì¨µÄ¸ïÃüÐԵĸı䣬windows²Ù×÷ϵͳµÄ°ÔÖ÷µØÎ»²ÅÓпÉÄܱ»º³¶¯¡£c#µÄ·½±ã¼òµ¥Ó ......

Ò»µÀjavaÌâËù½ÒʾµÄÔ­Àí

¿´µ½Ò»µÀjavaÌ⣬¸Ð¾õºÜ²»´í,ÎÒÔÚÔ­À´µÄ°æ±¾ÉÏÔö¼ÓÁËЩ´úÂ룬һÆðÀ´¿´¿´ÏÂÃæµÄ´úÂ뽫Êä³öʲô
class Father{
int i,j;

Father(){
add(1);
}
void add(int v){
i+=v;
j+=v;
}
void print(){
System.out.println("i:="+i);
System.out.println("j:="+j);
}
}
class C ......

javaµ÷Óô洢¹ý³Ì

Õâ¶Îʱ¼ä¿ªÊ¼Ñ§Ï°Ð´´æ´¢¹ý³Ì£¬Ö÷ÒªÔ­Òò»¹ÊÇÒòΪ¹¤×÷ÐèÒª°É£¬±¾À´ÒÔΪºÜ¼òµ¥µÄ£¬µ«¼¸¾­´ìÕÛ£¬ºÀÆøÏûÄ¥´ù¾¡£¬µ«×ÜËã¸ãͨÁË£¬ÎªÁ˱ÜÃâºóÀ´ÕßÉÙ×ßÍä·£¬ÌؼÇÊöÓë´Ë£¬Í¬Ê±Òà¶Ô×Ô¼º½øÐйÄÀø¡£
Ò»£ºÎÞ·µ»ØÖµµÄ´æ´¢¹ý³Ì
´æ´¢¹ý³ÌΪ£º
CREATE OR REPLACE PROCEDURE TESTA(PARA1 IN VARCHAR2,PARA2 IN VARCHAR2)  AS
BEGIN ......

JAVA»ù´¡Æª£¨Ò»£©

      ±¾ÆªÄÚÈÝϵͳJAVA»ù´¡ÖªÊ¶½éÉÜ£¬ÊÊÓÃÓÚ³õѧÕߺ͸´Ï°µÄÅóÓÑÔĶÁ¡£×÷Ϊ±¾ÈË£¬Ë価Á¿²éÔĸ÷ÖÖÊé¼®£¬µ«ÊÇÈÔÄѱÜÃâ¸÷ÖÖ´íÎóºÍ²»µ±£¬»¹Çë¿´¹ý²¢·¢ÏÖÆäÖдíÎóµÄÅóÓÑÖ¸Õý¡£
    Ò».¼ò½é
          1.Green TeamС×éÓëJAVA
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ