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

javaÖÐÊý×é´«µÝµÄËù˼ËùÏë

×ðÖØÔ­´´£¬±¾Ìùת×Ô:http://longsy.javaeye.com/blog/382880
µ±Êý×é×÷Ϊ·½·¨´«µÝ²ÎÊýʱ£¬¼ÙÈçÐè´¦Àí´ËÊý×飬ÔòÒ»°ãÓÐÁ½ÖÖ×ö·¨£¨ÒÔһάÊý×éΪÀý£©:
//µÚÒ»ÖÖ
public static int[] processArray1(int[] array) {
int[] tempArr = new int[array.length];
for(int i=0; i<array.length; i++) {
tempArr[i] = array[i];
}

//process temp array
for(int i=0; i<tempArr.length; i++) {
tempArr[i] = tempArr[i] * 2;
}

return tempArr;
}
//µÚ¶þÖÖ
public static int[] processArray2(int[] array) {
//process array
for(int i=0; i<array.length; i++) {
array[i] = array[i] * 2;
}
return array;
}
 
 ÕâÁ½ÖÖ´¦ÀíÊý×éÓкβ»Í¬ÄØ£¬ÎÒÃÇÓÃʾÀýÀ´ËµÃ÷:
public static void main(String[] args) {
int[] baseArr = {1,2,3,4};

int[] arr;
//use processArray1
arr = processArray1(baseArr);
//print arr
for(int i=0; i<arr.length; i++) {
System.out.print(arr[i] + " ");
}

System.out.print("\n-----------------------\n");
arr = processArray2(baseArr);
//print arr
for(int i=0; i<arr.length; i++) {
System.out.print(arr[i] + " ");
}
}
 
²âÊÔ½á¹ûÈçÏÂ: 
2 4 6 8
-----------------------
2 4 6 8
¾­¹ýÁ½Õß´¦Àí£¬µÃµ½µÄ×îÖÕ´¦Àí½á¹û¶¼ÊÇÒ»Ñù£¬ÄÇÕâÁ½ÖÖ´¦Àí·½Ê½µ½µ×Óкβ»Í¬ÄØ£¿ÎÒÃǰÑÿ´Î´¦ÀíÊý×éºóµÄÔ´Êý×é´òÓ¡³öÀ´¿´¿´£º
2 4 6 8
1 2 3 4  //´òÓ¡³öÀ´Ô´Êý×é
-----------------------
2 4 6 8
2 4 6 8  //´òÓ¡³öÀ´µÄÔ´Êý×é
Õâϲî±ð¾Í´óÁ˰ɣ¬Ò»¸öÊǸıäÁËÔ´Êý×飬һ¸öÊÇûÓиıäÔ´Êý×é
ÔÚ±à³Ì¹ýÖУ¬ÎÒÃǾ­³£ÎÞÒâÖÐËùÊý×é´«µÝ´¦ÀíµÄÐÎʽ¶¼Ð´³ÉÁ˵ڶþÖÖÐÎʽ,¼ÙÈçÎÒÃDz¢²»ÆÚÍû¸Ä±äÎÒÃǵÄÔ´Êý×飬Èç¹û´úÂëÁ¿±È½Ï´ó£¬¿ÉÄܵ½×îºó¶¼Ã»·¨ÕÒµ½´íÎó³öÔÚÄÄÀï¡£
ºÜÃ÷ÏÔ£¬µÚÒ»ÖÖ´¦Àí·½Ê½µÄ´úÂë±ÈµÚ¶þÖÖÒª¶àµÃ¶à£¬¶øÐ§ÂÊÒ²µÍ¡£ËäÈ»¿ÉÒÔ´ïµ½ÎÒÃÇÄ¿µÄ£¬µ«ÔÚЧÂÊ·½Ãæ´ó´òÕÛ¿Û£¬ÄÇÈçºÎ¼È¸ßЧ¶øÓÖ²»¸Ä±äÔ´Êý×飬һ°ã¿ÉÒÔ²ÉÓÃÖмäÊý×飨×îºÃ·ÅÔÚ´¦Àíº¯ÊýÖ®Í⣩£¬¸´ÖÆÔ´Êý×éµÄÖµ£¬Ö»ÐèÒª¶ÔÖмäÊý×é½øÐд¦Àí¼´¿É¡£


Ïà¹ØÎĵµ£º

JNAʵÏÖJavaµ÷ÓÃFortran

Ôڳɹ¦ÊµÏÖJavaµ÷ÓÃC++Ö®ºó£¬½ÓÏÂÀ´Ïëµ½ÄÜ·ñͨ¹ýJNAʵÏÖJavaµ÷ÓÃFortran£¬½ñÌìÊÔÑéÁËһϣ¬»¹ÊDZȽÏÈÝÒ׵ġ£
ÍøÉÏÓÐÒ»¸öJavaµ÷ÓÃF95µÄÀý×Ó£¬µ«ÊÇÎÒ¿¼ÂDz»½öҪʵÏÖF95µÄµ÷Ó㬻¹ÒªÊµÏÖF77µÄµ÷Óã¬ËùÒÔ·ÑÁËһЩÖÜÕÛ¡£
ÎÊÌâµÄ¹Ø¼üÔÚÓÚF77Ϊ¹ý³ÌÃû×Ô¶¯Ìí¼ÓÁËÒ»¸öβ²¿µÄÏ»®Ïߣ¬ËùÒÔsub1Õâ¸ö¹ý³Ì£¬µ½JavaÒ»¶Ë£¬¾Í±ä³ÉÁËsub1_£¬ ......

IBM FileNet Content Java API ¼ò½é

2008 Äê 6 ÔÂ 24 ÈÕ
Ô­ÎĵØÖ·£º http://www.ibm.com/developerworks/cn/data/library/techarticles/dm-0806wangys/
±¾ÎĽéÉÜ IBM FileNet P8 4.0 Platform ÌṩµÄ Content Java API¡£Ê×ÏÈ¶Ô FileNet P8 Content Engine ºÍ API ½øÐиÅÒª½éÉÜ, ²¢ËµÃ÷ÁËһЩ»ù±¾¸ÅÄî£¬ËæºóÏêϸ½éÉÜÁË FileNet Content EngineÌṩµÄ»ùÓÚ EJB ......

JavaÖи÷ÀàCache»úÖÆÊµÏÖ½â¾ö·½°¸

ÔÚJavaÖУ¬²»Í¬µÄÀà¶¼ÓÐ×Ô¼ºµ¥¶ÀµÄCache»úÖÆ£¬ÊµÏֵķ½·¨Ò²¿ÉÄÜÓÐËù²»Í¬£¬ÎÄÕÂÁоÙÁËJavaÖг£¼ûµÄ¸÷ÀàCache»úÖÆµÄʵÏÖ·½·¨£¬Í¬Ê±½øÐÐÁË×ۺϵıȽϡ£
OSCache
OSCacheÊǸöÒ»¸ö¹ã·º²ÉÓõĸßÐÔÄܵÄJava EE»º´æ¿ò¼Ü£¬OSCacheÄÜÓÃÓÚÈκÎJavaÓ¦ÓóÌÐòµÄÆÕͨµÄ»º´æ½â¾ö·½°¸¡£
OSCacheÓÐÒÔÏÂÌØµã£º»º´æÈκζÔÏó£¬Äã¿ÉÒÔ²»ÊÜÏÞÖÆµ ......

¡¾×ª¡¿JavaÖеÄλÔËËã·û

¡¾×ª¡¿JavaÖеÄλÔËËã·û
Ô­×÷ÕߣºRosen Jiang ³ö´¦£ºhttp://www.blogjava.net/rosen
ÒÆÎ»ÔËËã·û
    °üÀ¨£º
    “>> ÓÒÒÆ”£»“<< ×óÒÆ”£»“>>> ÎÞ·ûºÅÓÒÒÆ”
Àý×Ó£º
-5>>3=-1
1111 1111 1111 1111 1111 1111 1111 ......

java,document,xml½âÊÍ

1.½âÊÍ
ÒòΪjspÓõ½ÁËSiteDataÀ࣬¶øSiteData¼Ì³ÐBasePageÀ࣬
ËùÒÔBasePage¹¹Ô캯Êý
BasePage¹¹Ô캯Êý
initializeByCityCodeº¯Êýmain
keyµÄÖµmain.UpImages
vµÄÖµmain.UpImages
2.Ö´ÐÐÍê BasePage.java
ÖеÄinitCommon()ºó£¬
Ìøµ½SiteData.java ÖеĠ process();·½·¨£¬
 public SiteData(HttpServletR ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ