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

Java±àÂë¾­Ñé

1£¬Ò»ÐдúÂë×öÒ»¼þÊ£¬²»ÒªÔÚÒ»ÐдúÂëÀïÃæ´¦Àí¶à¼þÊ¡£ÄþÔ¸¶àÉùÃ÷¼¸¸ö±äÁ¿£¬Ò²Òª±£³Ö´úÂëµÄÇåÎú£¬ÒòΪ´úÂëµÄÉùÃ÷²¢²»»áÕ¼¶àÉÙÄÚ´æ¡£
ÀýÈ磺
          String tmpa = errIdList.get(i).toString().substring(2);
          String tmpb = errIdList.get(j).toString().substring(2);
          long a = Long.parseLong(tmpa, 16);
          long b = Long.parseLong(tmpb, 16);
          
   if( a>b )
   {
    //……
   }
ÄþÔ¸ÉùÃ÷ÁÙʱ±äÁ¿tmpa tmpb a b£¬Ò²²»Òª°ÑÒ»³¤´®´úÂë·Åµ½ifµÄÅжÏÓï¾äÖС£
2£¬°ÑÒ»¸ö·½·¨²ð³É¼¸¸ö·½·¨£º
 Ààclass
 {
  ·½·¨1()
  {}
  ·½·¨2()
  {}
  Ö÷º¯Êýmain()
  {
   //µ÷Ó÷½·¨1£»
   //µ÷Ó÷½·¨2£»
  }
 }
Èç¹ûÉÏÊö·½·¨1»òÕß·½·¨2ÀïÃæÓдóÁ¿´úÂë×öÁ˶à¼þÊ£¬¿ÉÒÔ¼ÌÐøϸ·Ö£º
 Ààclass
 {
  ·½·¨1.1()
  {}
  ·½·¨1.2()
  {\\µ÷Ó÷½·¨1.1}
  ·½·¨1.3()
  {\\µ÷Ó÷½·¨1.2}
  ·½·¨2.1()
  {}
  ·½·¨2.2()
  {\\µ÷Ó÷½·¨2.1}
  Ö÷º¯Êýmain()
  {
   //µ÷Ó÷½·¨1.3£»
   //µ÷Ó÷½·¨2.2£»
  }
 }
3£¬»º³åÇøµÄʹÓãº
£¨1£©¶ÁÈ¡Îļþʱ¿ÉʹÓÃBufferedReader£»
£¨2£©×Ö·û´®Ð´ÈëÎļþ StringBuffer£»
Èç¹ûÊǽ«“×Ö·û´®1”дÈëÎļþ£¬¿ÉÒÔÖ±½ÓÓÃPrintWriter.print()£»
¸ù¾ÝÐèÒª£¬Èç¹ûÉæ¼°´óÁ¿×Ö·û´®Æ´½Ó²Ù×÷£¬Ê¹ÓÃStringBuffer¿ÉÒÔÌá¸ßЧÂÊ¡£Èç¹ûÒª½«“×Ö·û´®1”+“×Ö·û´®2”+“×Ö·û´®3”дÈëÎļþ£¬ÒªÃ´ÏÈÁ¬½Ó×Ö·û´®ÔÙдÈ룬Ҫôµ÷ÓÃÈý´Îprint()·½·¨Á¬ÐøдÈ룬µ«ÊǶ¼²»¿ÉÈ¡¡£¿ÉÒÔÈçÏ£º
   //ʹÓÃ×Ö·û´®»º³åÇø£¬°´ÐÐдÎļþ
   StringBuffer strBuff = new Str


Ïà¹ØÎĵµ£º

Inner classes in Java, the mystery within.

Inner classes, also called Nested Classes, are nothing but classes that are defined within other classes. The nesting is a relationship between classes, not objects.
Inner classes have clearly two benefits, name control & access control. In Java, this benefit is not as important because Java pa ......

JavaÃæÊÔ¾­µäÊÔÌâ¼°´ð°¸

µÚÒ»£¬Ì¸Ì¸final, finally, finalizeµÄÇø±ð¡£ ¡¡¡¡
final—ÐÞÊηû£¨¹Ø¼ü×Ö£©Èç¹ûÒ»¸öÀà±»ÉùÃ÷Ϊfinal£¬Òâζ×ÅËü²»ÄÜÔÙÅÉÉú³öеÄ×ÓÀ࣬²»ÄÜ×÷Ϊ¸¸Àà±»¼Ì³Ð¡£Òò´ËÒ»¸öÀ಻Äܼȱ»ÉùÃ÷Ϊ
abstractµÄ£¬ÓÖ±»ÉùÃ÷ΪfinalµÄ¡£½«±äÁ¿»ò·½·¨ÉùÃ÷Ϊfinal£¬¿ÉÒÔ±£Ö¤ËüÃÇÔÚʹÓÃÖв»±»¸Ä±ä¡£±»ÉùÃ÷ΪfinalµÄ±äÁ¿±ØÐëÔÚÉùÃ÷ʱ¸ø¶¨ ......

JavaÊäÈëÊä³öÁ÷ ¸´ÖÆÎļþ

   ¸Õ¿ªÊ¼Ñ§Ï°Java,Ò»Ö±Ïëѧµ«×ÜÊǼá³Ö²»ÏÂÀ´,»Øµ½¼Ò¾ÍÏë×ÅÍæÓÎÏ·,¿´À´ÊÇҪϾöÐÄÁË,2010ÄêÒªºÃºÃѧϰJavaÁË.
   ÕâÊÇÔÚÍøÉÏ¿´µ½µÄÁ½¸öСÀý×Ó,×Ô¼ºÒ²×öÁËÒ»±é.
    1.
    try
{
FileInputStream in=new FileInputStream("C:/1.txt");
FileOutput ......

java¶¨Ê±Æ÷µÄʹÓÃ

¶¨Ê±Æ÷ÀàTimerÔÚjava.util°üÖС£Ê¹ÓÃʱ£¬ÏÈʵÀý»¯£¬È»ºóʹÓÃʵÀýµÄschedule(TimerTask task, long delay)·½·¨£¬É趨ָ¶¨µÄÈÎÎñtaskÔÚÖ¸¶¨µÄÑÓ³ÙdelayºóÖ´ÐС£¶¨Ê±Æ÷ÈÎÎñÀàTimerTaskÊdzéÏóÀ࣬¼Ì³Ð²¢ÖØдÆärun()·½·¨£¬¿ÉʵÏÖ¾ßÌåÈÎÎñ¡£
schedule(TimerTask task, Date time)É趨ָ¶¨ÈÎÎñtaskÔÚÖ¸¶¨Ê±¼ätimeÖ´ÐС£
cancel ......

java½â»ó±Ê¼Ç

½ñÌì³é¿ÕÏÂÁË¡¶java½â»ó¡·Õâ±¾Êé¿´ÁËһϣ¬È·Êµ²»´í£¬Ìá³öÁ˺ܶàÎÒÃÇƽʱ²»»á×¢ÒâµÄСÎÊÌâ¡£ÏëÏëÈç¹û²»×¢Òâ˵²»¶¨»áÒòΪһ¸öBUGÓôÃƸöÒ»Á½ÌìÒ²ÕÒ²»µ½¡£ÒÔÏÂÊÇ×ܽáµÄ±Ê¼Ç£¬±¸Íü~~
1.ÅжÏÆæÊý
i % 2 == 1 ÔÚi Ϊ¸ºÊýʱ½á¹ûΪ-1£¬ËùÒÔʹÓÃi % 2 != 0À´Åжϣ»µ±ÓÐÐÔÄÜÒªÇóʱʹÓà (i & 1) != 0¡£
*ÔÚʹÓÃ%ʱһ¶¨Òª¿¼Âǵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ