java ÊÂÎñÏÝÚå
ÕâƪÎÄ×ÖдµÄºÜºÃ£¬ÍƼö¸ø×Ô¼ººÍ´ó¼Ò£¡
ÊÂÎñ²ßÂÔ: Á˽âÊÂÎñÏÝÚå
ÔÚ Java ƽ̨ÖÐʵÏÖÊÂÎñʱҪעÒâµÄ³£¼û´íÎó
¼¶±ð£º Öм¶
Mark Richards, Ö÷¹ÜºÍ¸ß¼¶¼¼Êõ¼Ü¹¹Ê¦, Collaborative Consulting, LLC
2009 Äê 3 ÔÂ 06 ÈÕ
ÊÂÎñ´¦ÀíµÄÄ¿±êÓ¦¸ÃÊÇʵÏÖÊý¾ÝµÄ¸ß¶ÈÍêÕûÐÔºÍÒ»ÖÂÐÔ¡£±¾ÎÄÊÇΪ Java ƽ̨¿ª·¢ÓÐЧÊÂÎñ²ßÂÔ ÏµÁÐÎÄÕ µÄµÚһƪ£¬½éÉÜÁËһЩ·Á°ÄúʵÏÖ´ËÄ¿±êµÄ³£¼ûÊÂÎñÏÝÚå¡£±¾ÏµÁÐ×÷Õß Mark Richards ͨ¹ýʹÓà Spring Framework ºÍÆóÒµ JavaBeans£¨Enterprise JavaBeans£¬EJB£©3.0 ¹æ·¶ÖеĴúÂëʾÀý½âÊÍÁËÕâЩ¼«Æä³£¼ûµÄ´íÎó¡£
ÔÚÓ¦ÓóÌÐòÖÐʹÓÃÊÂÎñ³£³£ÊÇΪÁËά»¤¸ß¶ÈµÄÊý¾ÝÍêÕûÐÔºÍÒ»ÖÂÐÔ¡£Èç¹û²»¹ØÐÄÊý¾ÝµÄÖÊÁ¿£¬¾Í²»±ØʹÓÃÊÂÎñ¡£±Ï¾¹£¬Java ƽ̨ÖеÄÊÂÎñÖ§³Ö»á½µµÍÐÔÄÜ£¬Òý·¢Ëø¶¨ÎÊÌâºÍÊý¾Ý¿â²¢·¢ÐÔÎÊÌ⣬¶øÇÒ»áÔö¼ÓÓ¦ÓóÌÐòµÄ¸´ÔÓÐÔ¡£
¹ØÓÚ±¾ÏµÁÐ
ÊÂÎñÌá¸ßÁËÊý¾ÝµÄÖÊÁ¿¡¢ÍêÕûÐÔºÍÒ»ÖÂÐÔ£¬Ê¹Ó¦ÓóÌÐò¸ü½¡×³¡£ÔÚ Java Ó¦ÓóÌÐòÖÐʵÏֳɹ¦µÄÊÂÎñ´¦Àí²»ÊÇÒ»¼þÈÝÒ×µÄÊ£¬Éè¼ÆºÍ±àÂ뼸ºõÒ»ÑùÖØÒª¡£ÔÚÕâ·ÝÐÂµÄ ÏµÁÐÎÄÕ ÖУ¬Mark Richards ½«´øÁìÄúÉè¼ÆÒ»¸öÓÐЧµÄÊÂÎñ²ßÂÔ£¬ÊʺϴӼòµ¥Ó¦ÓóÌÐòµ½¸ßÐÔÄÜÊÂÎñ´¦ÀíµÈ¸÷ÖÖÓÃÀý¡£
µ«ÊDz»¹ØÐÄÊÂÎñµÄ¿ª·¢ÈËÔ±¾Í»áÓöµ½Âé·³¡£¼¸ºõËùÓÐÓëÒµÎñÏà¹ØµÄÓ¦ÓóÌÐò¶¼ÐèÒª¸ß¶ÈµÄÊý¾ÝÖÊÁ¿¡£½ðÈÚͶ×ÊÐÐÒµÔÚʧ°ÜµÄ½»Ò×ÉÏÀË·ÑÊý°ÙÒÚÃÀÔª£¬²»ºÃµÄÊý¾ÝÊǵ¼ÖÂÕâÖÖ½á¹ûµÄµÚ¶þ´óÒòËØ£¨Çë²ÎÔÄ ²Î¿¼×ÊÁÏ£©¡£¾¡È»È±ÉÙÊÂÎñÖ§³ÖÖ»Êǵ¼Ö»µÊý¾ÝµÄÒ»¸öÒòËØ£¨µ«ÊÇÊÇÖ÷ÒªµÄÒòËØ£©£¬µ«ÊÇÍêÈ«¿ÉÒÔÕâÑùÈÏΪ£¬ÔÚ½ðÈÚͶ×ÊÐÐÒµÀ˷ѵôÊýÊ®ÒÚÃÀÔªÊÇÓÉÓÚȱÉÙÊÂÎñÖ§³Ö»òÊÂÎñÖ§³Ö²»³ä·Ö¡£
ºöÂÔÊÂÎñÖ§³ÖÊǵ¼ÖÂÎÊÌâµÄÁíÒ»¸öÔÒò¡£ÎÒ³£³£Ìýµ½ “ÎÒÃǵÄÓ¦ÓóÌÐòÖв»ÐèÒªÊÂÎñÖ§³Ö£¬ÒòΪÕâЩӦÓóÌÐò´ÓÀ´²»»áʧ°Ü” Ö®ÀàµÄ˵·¨¡£Êǵģ¬ÎÒÖªµÀÓÐЩӦÓóÌÐò¼«ÉÙ»ò´ÓÀ´²»»áÅ׳öÒì³£¡£ÕâЩӦÓóÌÐò»ùÓÚ±àдÁ¼ºÃµÄ´úÂë¡¢±àдÁ¼ºÃµÄÑéÖ¤Àý³Ì£¬²¢¾¹ýÁ˳ä·ÖµÄ²âÊÔ£¬ÓдúÂ븲¸ÇÖ§³Ö£¬¿ÉÒÔ±ÜÃâÐÔÄÜËðºÄºÍÓëÊÂÎñ´¦ÀíÓйصĸ´ÔÓÐÔ¡£ÕâÖÖÀàÐ͵ÄÓ¦ÓóÌÐòÖ»Ð迼ÂÇÊÂÎñÖ§³ÖµÄÒ»¸öÌØÐÔ£ºÔ×ÓÐÔ¡£Ô×ÓÐÔÈ·±£ËùÓиüб»µ±×÷Ò»¸öµ¥¶ÀµÄµ¥Ôª£¬ÒªÃ´È«²¿Ìá½»£¬ÒªÃ´»Ø¹ö¡£µ«Êǻعö»òͬʱ¸üв»ÊÇÊÂÎñÖ§³ÖµÄΩһ·½Ãæ¡£ÁíÒ»·½Ã棬¸ôÀëÐÔ ½«È·±£Ä³Ò»¹¤×÷µ¥Ôª¶ÀÁ¢ÓÚÆäËû¹¤×÷µ¥Ôª¡£Ã»ÓÐÊʵ±µÄÊÂÎñ¸ôÀëÐÔ£¬ÆäËû¹¤×÷µ¥Ôª¾Í¿ÉÒÔ·ÃÎÊijһ»î¶¯¹¤×÷µ¥ÔªËù×öµÄ¸üУ¬¼´Ê¹¸Ã¹¤×÷µ¥Ôª»¹Î´Íê³É¡£ÕâÑù£¬¾Í»á»ùÓÚ²¿·ÖÊý¾Ý×÷³öÒµÎñ¾ö²ß£¬¶øÕâ»áµ¼ÖÂʧ°ÜµÄ½»Ò×
Ïà¹ØÎĵµ£º
ÓÅÏȼ¶
ÔËËã·û
Ãû³Æ
1
( )
À¨ºÅ
2
[ ] , ¡£
ºó׺ÔËËã·û
3
- (Ò»ÔªÔËËã·û£¬È¡¸ºÊý) , ! , ~ , ++ , --
Ò»ÔªÔËËã·û
4
* , / , %
³Ë£¬³ý£¬È¡Ä£
5
+, -
¼Ó£¬¼õ
6
>> , << , >>>
ÒÆλÔËËã·û
7
> , < , >= , <= , instanceof
¹ØϵÔËËã·û
8
==,!=
µÈÓÚ£¬²»µÈÓÚ
9
......
ÎÒÃDz»·ÁÉèÏ룬ΪÁË´´½¨Ò»¸öеÄỊ̈߳¬ÎÒÃÇÐèÒª×öЩʲô£¿ºÜÏÔÈ»£¬ÎÒÃDZØÐëÖ¸Ã÷Õâ¸öÏß³ÌËùÒªÖ´ÐеĴúÂ룬¶øÕâ¾ÍÊÇÔÚJavaÖÐʵÏÖ¶àÏß³ÌÎÒÃÇËùÐèÒª×öµÄÒ»ÇУ¡
×÷Ϊһ¸öÍêÈ«ÃæÏò¶ÔÏóµÄÓïÑÔ£¬JavaÌṩÁËÀà java.lang.Thread À´·½±ã¶àÏ̱߳à³Ì£¬Õâ¸öÀàÌṩÁË´óÁ¿µÄ·½·¨À´·½±ãÎÒÃÇ¿ØÖÆ×Ô¼ºµÄ¸÷¸öÏ̡߳£
  ......
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.io.*;
import java.security.*;
import javax.crypto.*;
import javax.crypto.spec.*;
/**
ÎļþÃû£ºFileEncrypter.java
JDK£º1.40ÒÔÉÏ
˵Ã÷£ºÎļþ¼ÓÃÜ
¼ÓÃÜ·½·¨£ºÈýÖØDES¼ÓÃÜ
¼ÓÃܹý³Ì£º¶ÔÑ¡ÖеÄÎļþ¼ÓÃܺóÔÚͬÎļ ......
jdk°²È«Ç¿¶ÈÉèÖãº
http://java.sun.com/javase/downloads/index.jspÖеÄOther DownloadsÏÂÔØ
½âѹzip,
ÓÃÆäÖеÄÁ½¸öjar°ü¸²¸Çjdk6ÏÂ\%JDK_HOME%\jre\lib\securityĿ¼ÏµÄjar°ü
jreĿ¼ÏÂÒ²×÷ÏàͬÅäÖÃ
È»ºóͨ¹ý´úÂë¶Î
try {
& ......
import java.util.ArrayList;
import java.util.List;
public class FenYe
{
static double allpage=0; //×ÜÒ³Êý
static double currpage=0; //µ±Ç°Ò³
static double pagesize=10; //ÏÔʾÐÐ
static int sta ......