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

Thinking in java Ö®¸´ÓÃÀà final¹Ø¼ü×Ö

      ÏÖÔÚÎҾ͸ø´ó¼Ò½éÉÜÒ»ÏÂfinal¹Ø¼ü×ÖÏà¹ØµÄһЩ¶«Î÷~~~
     1£¬finalÊý¾Ý
          ÔÚJavaÖУ¬Ïò±àÒëÆ÷¸æÖªÒ»¿éÊý¾ÝÊǺ㶨²»±äµÄ£¬ÕâÀà³£Á¿±ØÐëÊÇ»ù±¾Êý¾ÝÀàÐÍ£¬²¢ÇÒÒԹؼü×Öfinal±íʾ£¬ÔÚ¶ÔÕâ¸ö³£Á¿½øÐж¨ÒåµÄʱºò£¬±ØÐë¶ÔÆ丳³õÖµ¡£¶ÔÓÚ»ù±¾ÀàÐÍ£¬finalÊÇÊýÖµºã¶¨²»±ä£¬¶ø¶ÔÓÚ¶ÔÏóÒýÓã¬finalʹÒýÓú㶨²»±ä£¬ÒýÓÃÖ»ÊÇÖ¸ÏòµÄ¶ÔÏóÔÚ¶ÑÖеĿռ䲻±ä£¬µ«ÊǶÔÏóµÄ×ÔÉí»¹ÊÇ¿ÉÒÔÐ޸ĵġ£
    2£¬¿Õ°×final
         JavaÔÊÐíÉú³É“¿Õ°×final”£¬Ëùν¿Õ°×final¾ÍÊÇÖ¸±»ÉùÃ÷Ϊfinalµ«ÊÇÓÖδ¸ø¶¨³õÖµµÄÓò¡£
    3£¬final²ÎÊý
        JavaÔÊÐíÔÚ²ÎÊýÁбíÖÐÒÔÉùÃ÷·½Ê½Ö¸¶¨²ÎÊýΪfinal£¬ÕâÒâζ×ÅÄãÎÞ·¨ÔÚ·½·¨Öиü¸Ä²ÎÊýËùÖ¸ÏòµÄÒýÓöÔÏó¡£
    4£¬final·½·¨
        ʹÓÃfinal·½·¨µÄÔ­ÒòÓÐÁ½¸ö£ºÒ»¸öÊÇ°Ñ·½·¨Ëø¶¨¡£·ÀÖ¹Èκμ̳ÐÀàÐÞ¸ÄËüµÄ¶¨Ò壬²»»á±»¸²¸Ç£»ÁíÒ»¸öÊdzöÓÚЧÂʵĿ¼ÂÇ¡£
    5£¬finalºÍprivate¹Ø¼ü×Ö
        ÀàÖÐËùÓеÄprivate·½·¨¶¼ÒþʽµÄÖ¸¶¨ÎªÊÇfinalµÄ£¬ËùÒÔÎÞ·¨È¡ÓÃÒ²ÎÞ·¨¸²¸Çprivate·½·¨£¬µ«ÊÇ£¬private·½·¨Ç°¿ÉÒÔÌí¼ÓÐÞÊηûfinal£¬Ö»ÊÇ£¬ÕâʱºòÌí¼ÓµÄÐÞÊηûfinalûÓÐÈκεÄʵ¼ÊÒâÒ壬µ«ÊÇ£¬±àÒëÆ÷Ò²²»»á±¨´í¡£
    6£¬finalÀà
        ½«Ä³¸öÀඨÒåΪfinalÀàʱ£¬¾Í˵Ã÷ÁËÄã¼È²»Ïë¼Ì³Ð¸ÃÀ࣬Ҳ²»ÔÊÐí±ðÈ˼̳иÃÀà¡£ÓÉÓÚfinalÀà½ûÖ¹¼Ì³Ð£¬ËùÒÔfinalÀàÖÐËùÓеķ½·¨¶¼ÒþʽµÄÖ¸¶¨Îªfinal¡£
     7£¬finalÓëstaticÒ»ÆðÐÞÊαäÁ¿³õʼ»¯ÎÊÌâ
       ÈôÊÇÔÚ»ù´¡±äÁ¿µÄÇ°Ãæ¼Óstatic final ÐÞÊΣ¬ÔòÔÚÓÃÀàÃû.±äÁ¿Ãû ·½Ê½µÄµ÷ÓÃÖУ¬²»»áʵÐй¹ÔìÆ÷µÄ³õʼ»¯£¬Èçstatic final int = 5£»
       ÈôÊÇ»ù´¡±äÁ¿¸³ÖµµÄʱºòÊÇÒ»¸öÓòÖµ£¬Èçstatic final int  a = new Random().nextInt(34),ÔòÓÃÒÔÉÏ·½Ê½µ÷ÓõÄʱºòÒª³õʼ»¯¹¹ÔìÆ÷£»ÈôÒ»¸östaticÓò²»ÊÇfinalÐÞÊεģ¬Ôò£¬Í¨¹ýÒÔÉÏ·½·¨µ÷ÓõÄʱºòÐèÒªÁ¬½Ó£¨·ÖÅä´æ´¢¿Õ¼ä£©ºÍ³õʼ»¯£¨³õʼ»¯¸Ã´æ´¢¿Õ¼ä£©£¬Èçstatic


Ïà¹ØÎĵµ£º

JAVA»­³öwavÒôƵ²¨ÐÎͼ


×ֺţº´ó ÖРС
import java.awt.Graphics;
import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.SourceDataLine;
public class M ......

javaÖжÑÓëÕ»µÄÇø±ð

JavaµÄ¶ÑÊÇÒ»¸öÔËÐÐʱÊý¾ÝÇø,ÀàµÄ(¶ÔÏó´ÓÖзÖÅä¿Õ¼ä¡£ÕâЩ¶ÔÏóͨ¹ýnew¡¢newarray¡¢anewarrayºÍmultianewarrayµÈ Ö¸ÁÁ¢£¬ËüÃDz»ÐèÒª³ÌÐò´úÂëÀ´ÏÔʽµÄÊÍ·Å¡£¶ÑÊÇÓÉÀ¬»ø»ØÊÕÀ´¸ºÔðµÄ£¬¶ÑµÄÓÅÊÆÊÇ¿ÉÒÔ¶¯Ì¬µØ·ÖÅäÄÚ´æ´óС£¬Éú´æÆÚÒ²²»±ØÊÂÏȸæËß±àÒëÆ÷£¬ÒòΪËüÊÇÔÚÔËÐÐʱ ¶¯Ì¬·ÖÅäÄÚ´æµÄ£¬JavaµÄÀ¬»øÊÕ¼¯Æ÷»á×Ô¶¯ÊÕ×ßÕâЩ²»ÔÙ ......

´«ÖDz¥¿ÍjavaÅàѵ java»ù´¡Ö®Pool

×òÌìÓиöÅóÓÑÎÊÎÒ£¬Ñ§µÃ»á²»,°³ËµÑ§µÄ»á£¡
ºóÀ´ËûÓÖÎÊÎÒ£¬ËûÈç¹ûѧµÄ»°£¬Ñ§µÄ»áѧ²»»á£¬°³ËµÖ»Òª²»±¿µ°£¬°ÑÐÄ˼·ÅÔÚjavaÉÏ£¬¾ÍÒ»¶¨Ñ§µÄ»á£¡
ʱ¼äÒ»Ö±¹ýµÄ¶¼ºÜ¿ì£¬Ã¿¸öÈËÄÜ°ÑÎÕµÄÒ²Ö»ÓнñÌ죬ËùÒÔ¼´Ê¹À§ÄÑÔٶֻ࣬ÓдËʱ´Ë¿Ì×Ô¼ºÔÚ²»Í£µÄŬÁ¦¡£
ÄÄÅÂÏñÎÏÅ£Ò»ÑùµÄÇ°½ø£¬Ò²Ò»¶¨Óгɹ¦µÄÒ»Ì죬¾ÍÅÂ×Ô¼º·ÅÆú£¬ÅÂ×Ô¼ºÃ»ÓÐÐÅÐÄ£ ......

Javaͨ¹ýSamba·þÎñ²Ù×÷Linux¹²ÏíÎļþ


Ê×ÏÈÔÚLinuxÉÏ´´½¨Ò»¸ö¹²ÏíÎļþ¼Ð
mkdir /home/user/share
ÓÃrootÓû§Æô¶¯samba·þÎñ
service smb start
ÐÞ¸Äsmb.confÎļþ
sudo gedit /etc/samba/smb.conf »òÕß vi /etc/samba/smb.conf
[share]
path = /home/user/share
...
writable = yes
´´½¨¹²ÏíÓû§²¢ÉèÖÃÃÜÂë
sudo useradd smbusr
sudo smbpasswd -a s ......

Java Êý×é List ÈçºÎ´«Öµ

// ºÏ²¢ List ÖеÄÏàͬÊý¾ÝÐÐ
// Source £º tmpOrderEntryListBeanList
// Target £º resultOrderEntryListBeanList
// ------------------------------------------------------------------

// £¨1£©½«½á¹û¸³¸ø Result Livon 2010-5-18 Èý
// ÕûÀíÁÐ±í£¬ÒÔ±ã²éѯ¿â´æ¡£
private List<OrderEntryListBe ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ