java¶ÔÏó¼äµÄ¹Øϵ
1 ¾ÛºÏ
Ö»ÒªÀàÖнáºÏÁ˶ÔÏóµÄʵÀý£¬ÎÞÂÛ¸öÊý¶àÉÙ¶¼´æÔÚ ¾ÛºÏµÄ¹Øϵ£¬
¾ÛºÏÊǹØÁªµÄÒ»ÖÖÌØÊâÐÎʽ£¬ËüÒâζ×ÅÒ»ÖÖÕûÌå / ²¿·Ö£¨ whole/part £©µÄ¹Øϵ¡£
°×É«ÁâÐÎÖ±Ïß´ú±í¾ÛºÏµÄ¹Øϵ ±íʾWhole ʹÓÃÁËPart
ÀàÖзÃÎÊ¿ØÖÆ
+´ú±í publicµÄÊôÐÔ»òÕß·½·¨
-´ú±í privateµÄÊôÐԺͷ½·¨
#´ú±í protectedµÄÊôÐԺͷ½·¨
2 ¹ØÁª
ÀàÖ®¼äµÄ¹ØÁª´ó¶àÓÃÀ´±íʾ±äÁ¿ÊµÀý³ÖÓÐ×ŶÔÆäËû¶ÔÏóµÄÒýÓá£
ÔÚ¼ýÍ·Ç°¼ÓÉϺÚÉ«¼ýÍ· ±íʾ¹ØÁªµÄ¹Øϵ
ÕâÀï±íʾ PhoneÀà ʹÓÃÁËButton
3 ×éºÏʽһÖÖÌØÊâµÄ¾ÛºÏ¹Øϵ
UML ¶Ô×éºÏµÄ¶¨Ò壺
¢ÙÈçͬ¾ÛºÏ£¬ÊµÀý²»ÄÜÓÐÑ»·¡£
¢ÚÒ»¸ö±»ËùÓÐÕßʵÀý²»ÄÜͬʱÓÐÁ½¸öËùÓÐÕß¡£
¢Û ËùÓÐÕ߸ºÔð±»×éºÏµÄ¶ÔÏóµÄÉúÃüÖÜÆڵĹÜÀí¡£Èç¹ûËùÓÐÕß±»Ïú»Ù£¬±»ËùÓÐÕßÒ²±ØÐë¸ú×ÅÒ»Æð±»Ïú»Ù£¬Èç¹ûËùÓÐÕß±»¸´ÖÆ£¬±»ËùÓÐÕßÒ²±ØÐë¸ú×ÅÒ»Æ𱻸´ÖÆ¡£»ùÓڴ˵㣬¿ÉÒÔÓÃ×éºÏÀ´ÃèÊöÉ±´¡£
ÏÂͼΪ·Ç·¨×éºÏ£º
Ïà¹ØÎĵµ£º
[Image]ʹÓà Java 2D È¡µÃͼÏñÉÏÖ¸¶¨Î»ÖÃÏñËØµÄ rgb ÑÕÉ«·ÖÁ¿
CMYKÅäÉ«±í
RGBÅäÉ«±í
ʵЧ
Ó¢ÎÄÃû³Æ
RGB
16É«
PaleTurquoise1
187 255 255
#BBFFFF
PaleTurquoise2
174 238 238
#AEEEEE
PaleTurquoise3
150 205 205
#96CDCD
PaleTurquoise4
102 139 139
#668B8B
µÈµÈ. ......
×î½ü³õ²½½Ó´¥ÁËÏÂJava¼ÓÃܺÍÊý×ÖÇ©ÃûµÄÏà¹ØÄÚÈÝ£¬ÎÒѧϰµÄ¹ý³Ì´ó¸Å·ÖÎå²½£º
1£©ÏûÏ¢ÕªÒª
2£©Ë½Ô¿¼ÓÃÜ
3£©¹«Ô¿¼ÓÃÜ
4£©Êý×ÖÇ©Ãû
5£©Êý×ÖÖ¤Êé
ÏÂÃæµÄ´úÂëÊǵÚÈý²¿·Ö£º¹«Ô¿¼ÓÃÜ
Ï£ÍûÄÜΪ¸Õ¸Õ½Ó´¥Õâ¸öµÄÅóÓÑÃÇÊ¡µãÊÂ
package security;
import java.security.KeyPair;
import java.security.KeyPairGenerator ......
import java.util.concurrent.Semaphore;
/**
* ³éÏóÈÎÎñ£¬¾ßÌåµÄÖ´ÐÐÈÎÎñ£¬¹éʵÏÖÀฺÔð
*
* @author Administrator
*
*/
public abstract class Task {
public abstract void run();
private Semaphore s;
private boolean hasExisted = false;
public void P(final Semaphore s) throws Interrupt ......
import java.util.Date;
import java.text.SimpleDateFormat; //ΪÁËÏÔʾʱ¼ä¶ø¼Ó
Date date = new Date(); //»ñµÃϵͳʱ¼ä.
String nowTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(date);
//½«Ê±¼ä¸ñʽת»»³É·ûºÏTimestampÒªÇóµÄ¸ ......
String usrHome = System.getProperty("user.home");
ÏÂÃæÊÇSystemµÄ²ÎÊýÁбí
Key Meaning
------------------- ---------------------- ......