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

JAVA·´Éä»úÖÆµÄ¼òµ¥Ó¦ÓÃ

  ¿ª·¢µÄʱºòÓÐʱºò»áÅöµ½ÕâÑùµÄÇé¿ö£¬ÎÒÃÇÔÚд³ÌÐòµÄʱºò²¢²»ÖªµÀÐèÒªµ÷ÓÃij¸ö¶ÔÏóµÄÄĸö·½·¨£¬Ö»ÓгÌÐòÔËÐкó£¬ÎÒÃDzÅÄܹ»ÖªµÀ¡£»òÐíÎÒÃÇÐèÒª¸ù¾Ý¿Í»§¶Ë´«¹ýÀ´µÄij¸öString²ÎÊýµÄÖµÀ´ÅжÏÎÒÃÇÓ¦¸ÃÖ´ÐÐÄĸö·½·¨¡£ÔÚÕâÖÖÇé¿öÏÂJAVAµÄ·´ÉäÖ´ÐоͿÉÒÔ°ïÉÏæÁË¡£ÏÂÃæÊÇÎÒ×öµÄÒ»¸ö¼òµ¥µÄ²âÊÔ´úÂ룬Ìṩ¸ø´ó¼Ò×ö¸ö²Î¿¼¡£
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
public class TestRef{
public static void main(String[] args){
TestBean test = new TestBean();
Method[] methods = test.getClass().getMethods();
test.setAbc("---");
for(int i=0;i<methods.length;i++){
if(methods[i].getName().equalsIgnoreCase("getabc")){
try {
System.out.println(methods[i].invoke(test));
} catch (IllegalArgumentException e) {
e.printStackTrace();
} catch (IllegalAccessException e) {
e.printStackTrace();
} catch (InvocationTargetException e) {
e.printStackTrace();
}
}
}
}
}

from:http://www.blogjava.net/dong/archive/2008/06/05/206083.html


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

javaÖÐÈçºÎʹÓÃamcharts


×î½ü¹«Ë¾Åöµ½ÐèÒªÓÃͼ±íµÄÐÎʽÏÔʾһЩÊý¾Ý£¬ÎҾͿªÊ¼µ½ÍøÉϲéѯ£¬²éµ½ÁËjfreechartºÍamcharts,ÕâÁ½ÕßÎÒ¶¼ÊµÏÖ¹ýÁË£¬jfreechart×îºóÉú³ÉͼƬ£¬µ«ÊÇͼƬЧ¹û²»ÊÇÎÒÏëÒªµÄ£¬È»ºóÓÖÑо¿amcharts ËüµÄЧ¹ûȷʵºÜºÃ£¬¶øÇÒ¹Ù·½ÍøÕ¾ÉÏ»¹ÓкÃЩÀý×ӿɹ©ÏÂÔØ£¬ÍøÖ·ÊÇ:www.amcharts.com
£¨ÏëÒªÍê³ÉÒ»¸öamchartsͼÐÎÐèÒªswfobjects. ......

java´úÂë¹æ·¶

1.   ·ç¸ñÎñ±Ø±£³ÖÒ»¹áÐÔ(Consistent)
Ç°ÃæËµµ½µÄÄǸöÅóÓѵÄÎÊÌ⣬¾ÍÊÇ·ç¸ñÒ»¹áÐÐÎÊÌâ¡£ÆäʵËûµÄ·ç¸ñ£¬±¾À´Ò²Ã»ÓÐʲô
ÎÊÌ⣬µ«ÔÚÏîÄ¿ÀºÍÆäËû³ÌÐòÔ±µÄ³ÌÐòµÄ·ç¸ñ£¬ÏÔµÃìçÒ죬ÄǾʹæÔÚÎÊÌâÁË¡£
±ÈÈçÕâ¸öËõ½ø£¬ÓÖ±ÈÈç±äÁ¿ÃüÃû·½·¨£¬²»Í¬µÄÀ࣬²»Í¬µÄMethodsÀ¸÷×Ô²»Í¬£¬
Õâ³ÌÐò¾ÍºÜÄÑ¿´ÁË¡£ËùÒÔÒ»µ©ÄãÑ¡ÔñÁ ......

ѧϰ¼Ç¼——¡¾×ª¡¿javaÖдò¿ªexplorer


 ºÜÎÒÕÒÁ˺þà ÖÕÓÚÕÒµ½ÁË.....
ÒÔÏÂÊÇתÎÄ£º
//--------------------------------------------------------------------------------------------------
·½·¨ºÜ¼òµ¥£¬µ÷ÓÃexplorer.exe¾Í¿ÉÒÔ£¬
Runtime.getRuntime().exec(
             & ......

ÎҵĵÚÒ»¸öjava³ÌÐò

       ×î½üÒ»¶Îʱ¼ä¶Ôjava¸ÐÉÏÁËÐËȤ£¬ÒòΪ½èÁËÒ»±¾¡¶Thinking in java¡·£¬Ò»Ö±Ã»Ê±¼ä¿´£¬¿ìµ½»¹ÊéµÄʱºòÁË£¬Êé×ܲ»Äܰ׽è°É¡£¿´ÁËÁ½Ì죬´ó¸ÅÊÇɨÁË100¶àÒ³°É¡£×¼±¸±àдµÚÒ»¸öjava³ÌÐò¡£
       ´ÓÍøÉϲé×ÊÁÏ£¬ÐèÒªJDK£¬ÓÚÊÇÏÂÔØ£¬°²×°¡£¾ßÌåÉèÖÃÈçÏ£º
µÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ