Agile Java ѧϰ±Ê¼Ç£¨Ò»£© Ãô½Ý×ÛÊö
µÚÒ»´Î³¢ÊÔдѧϰ±Ê¼Ç£¬ÒòΪ¾õµÃÒÔǰѧ¹ýµÄ¶«Î÷³¤Ê±¼ä²»ÓþͶ¼ÍüÁË¡£Ò²²»ÖªµÀÕâÑù×öÖµ²»ÖµµÃ£¬ÒòΪ±Ï¾¹Ð´Ñ§Ï°±Ê¼Ç»á»¨·ÑÒ»¶¨µÄʱ¼ä£¬¶ÔÓÚÒ»¸öÈí¼þ¹¤³ÌרҵµÄ´óÈýѧÉúÀ´Ëµ£¬¿Î³Ì·±ÖØÊÇÖÚËùÖÜÖªµÄ¡£¶øÇÒÎÒµÄÎıÊÓÖ²»ºÃ£¬Ê±³£Ð´×ÅдמͲ»ÖªµÀ¸ÃÕâôдÁË£¬ÊôÓÚÄÇÖÖÐÄÖª¶ÇÃ÷¾ÍÊÇ˵²»³öÀ´µÄÀàÐÍ¡£²»¹ý£¬ÓÐÈË˵¹ý£¬ºÜ¶àÈ˶¼ÊÇÔÚÓÌÔ¥Öн«×Ô¼ºµÄʱ¼äÀ˷ѵôµÄ£¬ËùÒÔ£¬²»ÓÌÔ¥ÁË£¬Ïëд¾Íд£¬ÏÖÔÚ»¨·ÑµÄʱ¼äÓ¦¸Ã¿ÉÒÔÔÚÒÔºóÕÒ»ØÀ´£¬µÈʱ¼äÒ»³¤ÐèÒªÎÂϰѧ¹ýµÄ֪ʶµÄʱºò£¬Ò²Ðí¾ÍÊÇÌåÏÖѧϰ±Ê¼Ç¼ÛÖµµÄʱºò¡£
ºÃÁË£¬Agile JavaµÄѧϰ±Ê¼Ç£¬ÒòΪÏëÌá¸ßÒ»ÏÂ×Ô¼º£¬²»ÔÙ×öÖ»Âú×ãÓÚд³öʵÏÖ¹¦ÄܵĴúÂë¾ÍÐеÄÈË¡£ÔÚÍøÉÏËÑË÷ÁËһЩÍƼöÊé¼®£¬´ÓAgile Java¿ªÊ¼×Ô¼ºµÄ¹æ·¶Ö®Â·¡£²»¹ý»¹Õæ²»µ½¸ÃÔõôд£¬ÔÝʱÏÈÕª³ÊéÉϵÄÓмÛÖµµÄ»°°É^_^(¿ÒÇëÓÐдѧϰ±Ê¼Ç¾ÑéµÄ´ó´óÃDz»ÁߴͽÌ~~)
1. ʲôÊÇÃô½Ý
Ãô½ÝÊÇÃèÊöһЩÈí¼þ¿ª·¢·½·¨Ñ§µÄеıêÖ¾ÐԴʻ㡣ÓÚÖØÁ¿¼¶Èí¼þ¹ý³ÌµÄÆÙ²¼·¨Ïà¶Ô£¬Ãô½Ý¹ý³Ì£¬ÊÇÒ»ÖÖÊ®·ÖÐÂÓ±¡¢ÇáÁ¿¼¶µÄ¹ý³Ì¡£Ãô½Ý¹ý³Ì²»Ç¿µÄ±àдÎĵµºÍÌáÇ°È·¶¨¡£Ãô½Ý¹ý³ÌÖÂÁ¦ÓÚÓµ±§±ä»¯£¬XP(¼«ÏÞ±à³Ì)»òÐí¾ÍÊÇ×îÖøÃûµÄÃô½Ý¹ý³ÌµÄʵÀý¡£
ÔÚ¹¹½¨Èí¼þµÄ¹ý³ÌÖбØÐëÒª×öµÄÊÂÇ飺
l ·ÖÎö£ºÍ¨¹ýÊÕ¼¯ºÍÌáÁ¶ÐèÇó£¬À´¾ö¶¨ÈÃÄúµÄÈí¼þ×öʲô
l ¼Æ»®£ºÍÆËãÓö೤ʱ¼äÍê³ÉÄúµÄÈí¼þ
l Éè¼Æ£º¾ö¶¨ÈçºÎ°ÑËùÓÐÄúÒª×öµÄ¶«Î÷×°ÅäÔÚÒ»Æð
l ±àÂ룺ÓÃÒ»ÖÖ»ò¶àÖÖ¿ª·¢ÓïÑÔÀ´¹¹½¨ÄúµÄÈí¼þ
l ²âÊÔ£º±£Ö¤¹¤×÷µÄÕýÈ·ÐÔ
l ²¿Ê𣺽«Èí¼þ½»¸¶µ½Êµ¼Ê»·¾³
l Îĵµ£ºÏò²»Í¬µÄÓû§ÃèÊöÈí¼þ£¬°üÀ¨ÐèÒªÖªµÀÈçºÎ²Ù×÷Èí¼þµÄ×îÖÕÓû§ºÍÐèÒªÖªµÀÈçºÎά»¤Èí¼þµÄ³ÌÐòÔ±
l ÆÀÉó£ºÍ¨¹ýͬ¼¶ÆÀÉ󣬱£Ö¤Èí¼þµÄ¿Éά»¤ÐԺ͸ßÖÊÁ¿
2. ʲôÊǶÔÏó
¶ÔÏóÊÇijЩÏà¹Ø¸ÅÄîÔÚ´úÂ뼶±ðµÄ³éÏó¡£³éÏ󣺷Ŵó±¾ÖÊ£¬È¥µôÎ޹صÄÄÚÈÝ¡£ÃæÏò¶ÔÏóµÄºËÐĸÅÄîÊǶÔÏóÖ®¼äÏ໥·¢ËÍÏûÏ¢£¬´Ó¶øÓ°ÏìÐÐΪ¡£·â×°ÊÇÃæÏò¶ÔÏó±à³ÌµÄÁíÒ»¸ö¹Ø¼ü¸ÅÄ¶ÔϵͳÖеÄÆäËû¶ÔÏó£¬Òþ²ØËùÓв»±ØÒªµÄϸ½Ú¡£ÁíÒ»¸öÖØÒªµÄÃæÏò¶ÔÏóµÄ¸ÅÄîÊǶà̬¡£
3. ΪʲôҪTDD£¨Test-Driven Development£©
TDDÊÇÒ»ÖÖÓйØÖ¸¶¨ÔÚʲôµØ·½ÎªÏµÍ³²âÊԵļ¼Êõ¡£ÔÚ±àдʵ¼Ê´úÂë֮ǰ±àд²âÊÔ´úÂ룬¶ø²»Ê
Ïà¹ØÎĵµ£º
ÀàµÄ³õʼ»¯ºÍ¶ÔÏó³õʼ»¯ÊÇ JVM ¹ÜÀíµÄÀàÐÍÉúÃüÖÜÆÚÖзdz£ÖØÒªµÄÁ½¸ö»·½Ú£¬Google ÁËÒ»±éÍøÂ磬ÓйØÀà×°ÔØ»úÖƵÄÎÄÕµ¹ÊDz»ÉÙ£¬È»¶øÀà³õʼ»¯ºÍ¶ÔÏó³õʼ»¯µÄÎÄÕ²¢²»¶à£¬ÌرðÊÇ´Ó×Ö½ÚÂëºÍ JVM ²ã´ÎÀ´·ÖÎöµÄÎÄÕ¸üÊÇÏÊÓÐËù¼û¡£
±¾ÎÄÖ÷Òª¶ÔÀàºÍ¶ÔÏó³õʼ»¯È«¹ý³Ì½øÐзÖÎö£¬Í¨¹ýÒ»¸öʵ¼ÊÎÊÌâÒýÈ룬½«Ô´´úÂëת»»³É JVM ×Ö½ÚÂëºó£¬ ......
ÎÊ:
È·ÈÏÒ»ÏÂc++Öв»ÄÜʹÓÃinterface£¨Èçjava£©ÄÇÑùµÄ¹¦ÄÜ°Ñ
ÎÒÈÏΪÊDz»Äܵģ¬×¢ÒâÎÒ˵µÄÊÇinterface£¨ÓÃÓÚjava¶àÖؼ̳еÄÄǸö£¬²»ÊÇÒ»°ãÒâÒåµÄ½Ó¿Ú£©
ÎÒ¾õµÃÊÇûÓеģ¬µ«ÊÇÍøÉÏËÑË÷˵ʲôµÄ¶¼ÓжøÇÒÈË»¹²»ÉÙ…… ËùÒÔÏ£Íû´ó¼ÒÄܸøÎÒÒ»¸öÃ÷È·µÄ´ð¸´ºÃô£¿×îºÃÄÜ»¹ÓÐһР......
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest request = (HttpServletRequest) context.getExternalContext().getRequest();
String parameterValue = request.g ......
Ò»¡¢JAVA»ñÈ¡Ëæ»úÊýµÄ·½·¨
//ʹÓÃjava.lang.MathÀàµÄrandom()·½·¨
double a = Math.random();
System.out.println("0.0-1.0µÄËæ»úÊý£º" + a);
double b = Math.random()*100;
System.out.println("0.0-100.0µÄËæ»úÊý£º" + b);
int c = (int)(Math.random()*100);
System.out.println("0-100µÄËæ»úÕûÊý£º" + c);  ......
Java EE 6ÏÖÔÚÒѾÕýʽ·¢²¼¡£ÔÚSunµÄ¹Ù·½ÍøÕ¾ÉÏ£¬ÓÐһϵÁÐÎÄÕ¶ÔJava EE 6µÄ¼¼Êõ±ê×¼½øÐÐÁËÏêϸµÄ½éÉÜ¡£½ñÌìÕâƪ½éÉÜJava EE 6µÄÖ÷ҪĿ±ê¡£
Javaƽ̨ÆóÒµ°æ±¾(Java EE)Êǹ¹½¨JavaÆóÒµ¼¶Ó¦ÓÃϵͳµÄÐÐÒµ±ê×¼£¬ËüÒÔ¼áʵµÄJavaƽ̨±ê×¼°æ(Java SE)Ϊ»ù´¡£¬Ìí¼ÓÁËÖ§³Ö¿ÉÀ©Õ¹ÐÔ¡¢¿É·ÃÎÊÐÔ¡¢°²È«ÐÔ¡¢ÍêÕûÐÔºÍÆäËüÆóÒµ¼¶Ó¦ÓÃÐèÒªµÄ ......