Java ¾²Ì¬´úÀíºÍ¶¯Ì¬´úÀí
1. ´úÀíģʽÖ÷ÒªÓÐÁ½ÖÖ£º¾²Ì¬´úÀíºÍ¶¯Ì¬´úÀí
2. ¾²Ì¬´úÀí£º
±ÈÈçÒªÔÚÊä³ö“HelloWorld”Ç°´òÓ¡Ò»¸ö×Ö·û´®“Welcome”
A:Ïȶ¨ÒåÒ»¸ö½Ó¿ÚÀà
Java´úÂë
package ttitfly.proxy;
public interface HelloWorld {
public void print();
// public void say();
}
package ttitfly.proxy;
public interface HelloWorld {
public void print();
// public void say();
}
B: ¶¨ÒåÒ»¸ö¸Ã½Ó¿ÚµÄʵÏÖÀà
java ´úÂë
Java´úÂë
package ttitfly.proxy;
public class HelloWorldImpl implements HelloWorld{
public void print(){
System.out.println("HelloWorld");
}
// public void say(){
// System.out.println("Say Hello!");
// }
}
package ttitfly.proxy;
public class HelloWorldImpl implements HelloWorld{
public void print(){
System.out.println("HelloWorld");
}
// public void say(){
// System.out.println("Say Hello!");
// }
}
C:¶¨ÒåÒ»¸ö¾²Ì¬´úÀíÀà
Java´úÂë
package ttitfly.proxy;
public class StaticProxy impleme
Ïà¹ØÎĵµ£º
×Öĸ ÈÕÆÚ»òʱ¼äÔªËØ ±íʾ ʾÀý
G
Era ±êÖ¾·û
Text
AD
y
Äê
Year
1996; 96
M
ÄêÖеÄÔ·Ý
Month
July; Jul; 07
w
ÄêÖеÄÖÜÊý
Number
27
W
Ô·ÝÖеÄÖÜÊý
Number
2
D
ÄêÖеÄÌìÊý
Number
189
d
Ô·ÝÖеÄÌìÊý
Number
10
F
Ô·ÝÖеÄÐÇÆÚ
Number
2
E
ÐÇÆÚÖ ......
ÎÒÔÚÒ»¸öÓ¡¶ÈÍâ°ü¹«Ë¾¹¤×÷¡£ÎÒËù×öµÄϵͳ´ó²¿·ÖÊÇÓ¡¶È³ÌÐòԱдµÄ¡£
¿´ÁËËûÃǵĴúÂëÓиöÌصã¸ø´ó¼ÒÆÀÆÀ¡£
1¡¢ËûÃÇдµÄ´úÂë±È½ÏÑϽ÷£¬±ÈÈçÔÚÑ»·Ò»¸ö¼¯ºÏÇ°»á×÷nullÅжϣ¬·½·¨ÀàÃüÃûÒ²±È½Ï¹æ·¶Ò׶®¡£
2¡¢ËûÃÇ£¬×¢ÊÍдµÄ²»¶à£¬µ«logдºÜÇÚ¿ì¡£
3¡¢ËûÃǺÃÏñ²»Ì«Ï²»¶ÓÃÁÙʱ±äÁ¿£¬Äܲ»Óþ¡Á¿²»Óá£
4¡¢ËûÃǵĴúÂëÈçÅжÏÒ»¸öb ......
1.Ê÷¼¯TreeSet
TreeSetÀàÔÚjava.util°üÖÐ
Ê÷¼¯ÖеĽáµãÊÇ°´×ÅÆä´æ·ÅµÄÊý¾ÝµÄ×ÖµäÐòÒ»²ãÒ»²ãµØÒÀ´ÎÅÅÁÐ ÔÚͬһ²ãÖеĽáµã´Ó×óµ½ÓÒ°´×ÖµäÐòµÝÔöÅÅÁÐ
A.¹¹Ôì·½·¨£ºTreeSet()
B.³£Ó÷½·¨
& ......
1.É¢Áм¯HashSet
HashSetÀàÔÚjava.util°üÖÐ
A.¹¹Ôì·½·¨£ºHashSet()
B.³£Ó÷½·¨
public boolean add(Object o)£ºÏò¼¯ºÏÖÐÌí¼ÓÖ¸¶¨ÔªËØo
&nb ......
¿çƽ̨ÈýάͼÐοª·¢¹¤¾ß°üJava 3D
¹Ù·½Ö÷Ò³£ºhttps://java3d.dev.java.net/
Java 3DÑϸñ×ñÑ“½¨Ä££»æÖÆ”·ºÐÍ¡£³¡¾°Í¼£¨scene graph£©µÄ³éÏóÄ£Ðͱ»ÓÃÀ´×éÖ¯ºÍά»¤ÐéÄⳡ¾°ÖеĿÉÊǶÔÏó¼°ÆäÐÐΪ¡£³¡¾°Í¼°üº¬ÁËÐéÄâͼÐÎÊÀ½çµÄÈ«²¿ÐÅÏ¢£¬Java 3D»æÖÆÒýÇæ»á¶Ô³¡¾°Í¼½øÐÐ×Ô ......