JavaÖÐÀàÓëÀàµÄ¹Øϵ
ÀàÓëÀàÖ®¼ä´æÔÚÒÔϹØϵ£º
1¡¢ ·º»¯(Generalization)
ºÜ¼òµ¥£¬¾ÍÊÇÎÒÃdz£ËµµÄ¼Ì³Ð¡£ÊÇ˵×ÓÀà»ñµÃ¸¸ÀàµÄ¹¦ÄܵÄͬʱ£¬»¹¿ÉÒÔÀ©Õ¹×Ô¼ºµÄ¹¦ÄÜ¡£
Èçͼ:
Java´úÂëÖбíÏÖΪ£ºextends ºÍ implements
2¡¢ ÒÀÀµ(Dependency)
Á½¸öÏà¶Ô¶ÀÁ¢µÄßËßË(AºÍB)£¬µ±A¸ºÔð¹¹ÔìBʱ£¬AÓëBÐγÉÒÀÀµ¹Øϵ£¬¼´AʹÓÃB¡£
Èçͼ£º
Java´úÂëÖеıíÏÖΪ¾Ö²¿±äÁ¿£¬·½·¨µÄ²ÎÊý£¬ÒÔ¼°¶Ô¾²Ì¬·½·¨µÄµ÷ÓÃ
3¡¢ ¹ØÁª(Association)
Á½¸öÏà¶Ô¶ÀÁ¢µÄßËßË(AºÍB)£¬µ±A¶ÔÏó³ÖÓÐB¶ÔÏóµÄʱºò£¬ÐγɹØÁª¹Øϵ¡£
¹ØÓÚ·ÖΪÓÐÁ½ÖÖÌØÊâµÄÐÎʽ£¬¾ÛºÏ£¨Aggregation£©ºÍ×éºÏ£¨Composition£©£¬¾ÛºÏºÍ×éºÏÖ»ÓиÅÄîÉϵÄÇø±ð£¬ÔÚJavaÖеĴúÂëʵÏÖÉÏûÓÐÇø±ð¡£
¾ÛºÏ£ºÖ¸µÄÊÇÕûÌåÓ벿·ÖµÄ¹Øϵ£¬Èçͼ£º
×éºÏ£º±íʾÀàÖ®¼äÕûÌåºÍ²¿·ÖµÄ¹Øϵ£¬µ«ÊÇ×éºÏ¹ØϵÖв¿·ÖºÍÕûÌå¾ßÓÐͳһµÄÉú´æÆÚ,¼´ÕûÌå¶ÔÏó²»´æÔÚ£¬²¿·Ö¶ÔÏóÒ²½«²»´æÔÚ£¬Èçͼ£º
Java´úÂëÖУ¬±íÏÖΪ³ÉÔ±±äÁ¿¡£
4¡¢ ×ܽá
ÔÚJavaÖУ¬Ó¦¸Ã¾¡Á¿ÓÅÏÈʹÓÃ×éºÏ£¬¶ø²»ÊǼ̳У¬ÒòΪ¼Ì³Ð»áʹµÃÀà¹Øϵ¹ýÓÚ¸´ÔÓ»¯£¬ÆÆ»µÁË·â×°ÐÔ£¬Ê¹ÓÃ×éºÏÒ»Ñù¿ÉÒÔ»ñµÃÒÑÓÐÀàµÄ¹¦ÄÜ£¬¶øÇÒ»áʹÐÂÀà¸ü¼ÓÎȹ̡£
ʵ¼ÊÉÏ£¬´ÓÒÀÀµ -----¡µ¾ÛºÏ--------¡µ×éºÏ£¬ÀàÓëÀàÖ®¼äµÄ¹Øϵ¸ü¼Ó½ôÃÜ£¬»¥ÏàÖ®¼äµÄÓ°ÏìÔ½À´Ô½´ó£¬ÆäʵÎÒÃÇƽ³£±È½ÏÉÙÈ¥Çø·ÖÕâЩ¹Øϵ£¬¶øÇÒÊÂʵÉÏÕⶫÎ÷µÄ¶¨Ò岻̫ºÃÀí½â£¬ËùÒԿ϶¨»áµ¼ÖÂÈÏʶÉϵÄÆ«²î£¬ËùÒÔÎÒÃÇʹÓÃÕâЩ¶«Î÷µÄʱºò£¬¾¡Á¿¿¿½ü´ó¼Ò¶¼ÈÏͬµÄ×ö·¨£¬ÕâÑùÈÝÒ×ÈñðÈËÀí½â
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/fantian830211/archive/2007/08/21/1753520.aspx
Ïà¹ØÎĵµ£º
ÓÅÏȼ¶
ÔËËã·û
Ãû³Æ
1
( )
À¨ºÅ
2
[ ] , ¡£
ºó׺ÔËËã·û
3
- (Ò»ÔªÔËËã·û£¬È¡¸ºÊý) , ! , ~ , ++ , --
Ò»ÔªÔËËã·û
4
* , / , %
³Ë£¬³ý£¬È¡Ä£
5
+, -
¼Ó£¬¼õ
6
>> , << , >>>
ÒÆλÔËËã·û
7
> , < , >= , <= , instanceof
¹ØϵÔËËã·û
8
==,!=
µÈÓÚ£¬²»µÈÓÚ
9
......
ÔʼURL£º http://blog.donews.com/dukejoe/archive/2010/04/28/1575574.aspx
package cn.com.hrbb.samples;
import com.jacob.activeX.ActiveXComponent;
import com.jacob.com.Dispatch;
import com.jacob.com.Variant;
/**
*
* ÑÝʾʹÓà JACOB : Java COM Bridge ²Ù×Ý Word Îĵµ
*
* ×÷Õߣº¸ßºêΰ(DukeJoe)
......
ÓõÄÊÇCommonsÉÏ´«×é¼þ£¬ÏÂÔصØÖ·£ºCommons
ÍøÉÏÕÒµÄСÀý×Ӹĵģ¬ÐÞ¸ÄÁ˲¿·Ö´íÎó¡£
1£¬FileUpload.java
package com.fileupload;
import java.io.File;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.List;
import ja ......
ÓÐʱºòÎÒÃÇ»áÓöµ½java³ÌÐòʹÓÃÄÚ´æ¹ý¶àµÄÇé¿ö£¬ÕâÖÖÇé¿öÒ»°ãÊÇÒòΪ³ÌÐòÓÐÄÚ´æй©£¬ÄÇôÈçºÎ·ÖÎöÊÇ·ñÓÐÄÚ´æй©ÄØ£¿ÆäʵÔÒò±È½Ï¼òµ¥£¬ÏÈÓÃjmapÀ´Éú³ÉÒ»¸ö½ø³ÌµÄÄÚ´æ¿ìÕÕ£¬È»ºóÀûÓÃheapAnalyzer»òÕßMod4JÀ´¶ÔÕâ¸ö¿ìÕÕ½øÐзÖÎö£¬ÕÒµ½ÄÚ´æʹÓÃ×î¶àµÄ¶ÔÏó¡£ÆäʵÓÐÎÞÄÚ´æй©µÄÒ»¸ö±íÏÖ¾ÍÊÇÄÚ´æ·Ö²¼ÊÇ·ñ¾ùÔÈ£¬Èç¹û²»¾ùÔÈ£¬Ò»°ãÀ ......
1 ËùÓÐµÄ .java|.jsp|.html|.xml Ô´Îļþ¾ùʹÓÃutf-8±àÂë¸ñʽ±£´æµ½ÏµÍ³´ÅÅÌ¡£
È磺ÔÚEclipseÖбà¼Îļþ£¬Ñ¡ÖÐÎļþ´ò¿ªÓÒ¼ü²Ëµ¥Ñ¡ÔñÊôÐÔ£¬½«Îı¾Îļþ±àÂëÉèÖÃΪÆäËû²¢Ñ¡ÔñUTF-8£»Ò²¿ÉÒÔÔÚ
Eclipse——Ê×Ñ¡Ïî——³£¹æ——ÄÚÈÝÀàÐÍÖÐÉèÖø÷ÖÖÎļþµÄȱʡ±àÂ룬ÕâÑùÒÔºóËùÓеÄÎı¾Îļþ¶¼Ê¹ÓÃÍ³Ò ......