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

5.5±Ê¼Ç java»ù´¡ÔöÇ¿

½ñÌìÊÇÀ´´«ÖDz¥¿ÍµÄµÚÒ»Ì죬ÐÒ¿÷֮ǰ¿´¹ýthinking in java ¸Ð¾õÀí½â²»ÊǺܳÔÁ¦£¬µ«ÊǸоõͦÀÛµÄ
1¡£Íâ¹Ò²å¼þµÄ²½Ö裺
1£¬ÔÚeclipseµÄĿ¼Ï½¨Á¢linksĿ¼¡£
2£¬ÔÚlinksĿ¼Ï£¬½¨Á¢Ò»¸öÎļþ£¬ÄÚÈÝΪ²å¼þeclipseĿ¼µÄ¸¸Ä¿Â¼£»
 path=²å¼þeclipseĿ¼µÄ¸¸Ä¿Â¼  path=F:\\Eclipse\\NLpack1-eclipse-SDK-3.2.1-win32
3£¬´ò¿ªeclipse½øÐÐÑéÖ¤¡£
 1.1·ºÐÍÊÇJava SE 1.5µÄÐÂÌØÐÔ£¬·ºÐ͵ı¾ÖÊÊDzÎÊý»¯ÀàÐÍ£¬Ò²¾ÍÊÇ˵Ëù²Ù×÷µÄÊý¾ÝÀàÐͱ»Ö¸¶¨ÎªÒ»¸ö
²ÎÊý¡£ÕâÖÖ²ÎÊýÀàÐÍ¿ÉÒÔÓÃÔÚÀà¡¢½Ó¿ÚºÍ·½·¨µÄ´´½¨ÖУ¬·Ö±ð³ÆΪ·ºÐÍÀà¡¢·ºÐͽӿڡ¢·ºÐÍ·½·¨¡£
1.2JavaÓïÑÔÒýÈë·ºÐ͵ĺô¦ÊÇ°²È«¼òµ¥µÄʵÏÖ“ÈÎÒ⻯”¡£ÔÚJava SE 1.5֮ǰ£¬Ã»ÓзºÐ͵ÄÇé¿öµÄÏÂ
£¬Í¨¹ý¶ÔÀàÐÍObjectµÄÒýÓÃÀ´ÊµÏÖ²ÎÊýµÄ“ÈÎÒ⻯”£¬“ÈÎÒ⻯”´øÀ´µÄȱµãÊÇÒª×öÏÔʽµÄÇ¿ÖÆÀàÐÍת
»»£¬¶øÕâÖÖת»»ÊÇÒªÇ󿪷¢Õ߶Ôʵ¼Ê²ÎÊýÀàÐÍ¿ÉÒÔÔ¤ÖªµÄÇé¿öϽøÐеġ£¶ÔÓÚÇ¿ÖÆÀàÐÍת»»´íÎóµÄÇé¿ö
£¬±àÒëÆ÷¿ÉÄܲ»Ìáʾ´íÎó£¬ÔÚÔËÐеÄʱºò²Å³öÏÖÒì³££¬ÕâÊÇÒ»¸ö°²È«Òþ»¼¡£
¡¡¡¡·ºÐ͵ĺô¦ÊÇÔÚ±àÒëµÄʱºò¼ì²éÀàÐÍ°²È«£¬²¢ÇÒËùÓеÄÇ¿ÖÆת»»¶¼ÊÇ×Ô¶¯ºÍÒþʽµÄ£¬Ìá¸ß´úÂëµÄÖØ
ÓÃÂÊ¡£
·ºÐ͵ÄÒýÈë¿ÉÒÔÔÚ±àÒëʱÆÚ¼ì²éÀàÐ͵ÄÕýÈ·ÐÔ
   ʲôʱºòʹÓ÷ºÐÍ  µ±²Ù×÷µÄÒýÓÃÊý¾ÝÀàÐͲ»È·¶¨µÄʱºò ¾ÍʹÓ÷ºÐÍ
¹¹ÔìÑÓ³Ù
ÒòΪ¿ÉÒÔ²Á³ý¹¦ÄÜ£¬ËùÒÔ List<Integer> ºÍ List<String> ÊÇͬһ¸öÀ࣬±àÒëÆ÷ÔÚ±àÒë List<V> ʱֻ
Éú³ÉÒ»¸öÀࣨºÍ C++ ²»Í¬£©¡£Òò´Ë£¬ÔÚ±àÒë List<V> Ààʱ£¬±àÒëÆ÷²»ÖªµÀ V Ëù±íʾµÄÀàÐÍ£¬ËùÒÔËü¾Í
²»ÄÜÏñÖªµÀÀàËù±íʾµÄ¾ßÌåÀàÐÍÄÇÑù´¦Àí List<V> ÀඨÒåÖеÄÀàÐͲÎÊý£¨List<V> ÖÐµÄ V£©¡£
ÒòΪÔËÐÐʱ²»ÄÜÇø·Ö List<String> ºÍ List<Integer>£¨ÔËÐÐʱ¶¼ÊÇ List£©£¬
²Á³ýµÄ²¹³¥£º
  ÕýÊÇÓÉÓÚ²Á³ýµÄ´æÔÚ£¬ËùÒÔÔÚÔËÐÐʱ²ÅÄÜÖªµÀÈ·ÇÐÀàÐÍÐÅÏ¢µÄ²Ù×÷¶¼ÎÞ·¨Ö´ÐÐ
ÀýÈç
£ºpublic class genergic<T>
{
  public static test(Object org)
{
  if(org instance T){}
  T war=new T<>;
  T[] array=new T(10);
  T[] array=(T) new object(10);
 
}
}
µ«ÊÇ¿ÉÒÔÓÃÒÔÏ·½·¨½â¾öÎÊÌ⣺
public class genergic<T>
{
Class<T> kind
genergic(Class<T> kind)
{
this.kind=kind;
}
  public static test(Obje


Ïà¹ØÎĵµ£º

¶¨ÖÆÓëÀ©Õ¹Java¼¯ºÏ¿ò¼Ü

 ¸ÅÒª£ºJava¼¯ºÏAPIÔ¶²»Ö¹ÊÇÊý×éµÄÌæ´úÆ·£¬¾¡¹ÜÄÇÊÇÒ»¸ö²»»µµÄÈÏÖªÆðµã¡£Ted NewardչʾÁË5¸öÄܸü´óÀûÓü¯ºÏ¿ò¼ÜµÄÇÏÃÅ£¬°üº¬Ò»¸ö¶¨ÖƲ¢À©Õ¹Java¼¯ºÏAPIµÄÈëÃż¶Ó¦Óá£
    ¶ÔÓÚÐí¶àJava¿ª·¢Õ߶øÑÔ£¬Java¼¯ºÏAPIÊDZê×¼µÄJavaÊý×é¼°ÆäÈ«²¿È±µãµÄ±ØÒªÌæ´úÆ·¡£½«¼¯ºÏ¿ò¼ÜÖ÷ÒªÓëArrayListÁªÏµÆðÀ´²¢²»ÊÇÒ ......

javaÖÐÉÏ´«Í¼Æ¬

1. ActionFormÖÐÌí¼ÓÊôÐÔ£¬FormFileÀàÐͶÔÏó¡£
private FormFile upLoadFile;
public FormFile getUpLoadFile() {
return upLoadFile;
}
public void setUpLoadFile(FormFile upLoadFile) {
this.upLoadFile = upLoadFile;
}
2. Action ÖÐÔö¼ÓÐ޸ķ½·¨¡£
public ActionForward save(ActionMapping mapping, Action ......

C#ºÍJavaµÄ±Õ°ü£­Jon̸¡¶The Beauty of Closures¡·


Ô­ÎÄ£ºhttp://csharpindepth.com/Articles/Chapter5/Closures.aspx
µÚÒ»¶ÎÂÔ¡£¡£¡£
´ó¶àÊý½²±Õ°üµÄÎÄÕ¶¼ÊÇ˵º¯ÊýʽÓïÑÔ£¬ÒòΪËüÃÇÍùÍù¶Ô±Õ°üµÄÖ§³Ö×îÍêÉÆ¡£µ±ÄãÔÚʹÓú¯ÊýʽÓïÑÔʱ£¬ºÜ¿ÉÄÜÒѾ­Çå³þÁ˽âÁËʲôÊDZհü£¬ËùÒÔÎÒÏëдһƪÔÚ¾­µäOOÓïÑÔ³öÏֵıհüÓÐʲôÓô¦Ó¦¸ÃÒ²ÊǺܺÏÊʵÄÊÂÇé¡£ÕâƪÎÄÕÂÎÒ×¼±¸½²Ò»ÏÂC#£¨1¡ ......

thinking in javaµÚÎåÕÂ1 ³õʼ»¯ÓëÇåÀí


µÚһ֪ʶµã£º¹¹ÔìÆ÷£¬¹¹ÔìÆ÷ºÍÀàÃûÒ»Ö£¬ÎÞ·µ»ØÖµ£¬ÔÚjavaÖГ³õʼ»¯”Óë“´´½¨”ÊÇÁ¬ÔÚÒ»ÆðµÄ£¬ËùÒÔÎÒÃǾ­³£Óù¹ÔìÆ÷ÔÚ´´½¨¶ÔÏóµÄʱºòÀ´³õʼ»¯ÀàµÄһЩʵÀý¡£ÌØÊâ˵Ã÷£ºnew±í´ïʽ·µ»ØÁ˶Ôн¨¶ÔÏóµÄÒýÓ㬵«Êǹ¹ÔìÆ÷±¾ÉíûÓзµ»ØÈκÎÖµ¡£
µÚ¶þ¸ö֪ʶµã£º·½·¨µÄÖØÔØ£¬Ãû³ÆÏàͬ£¬²ÎÊý²»Í¬µÄ·½·¨½Ð×ö· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ