ÀûÓÃjava·´Éä¼¼ÊõÌáÈ¡ÀàÐÅÏ¢
ÀûÓÃjava·´Éä¼¼ÊõÌáÈ¡ÀàÐÅÏ¢
1 package day15;
2
3 import java.lang.reflect.*;
4
5 public class ReflectionTest {
6
7 public static void main(String[] args) {
8
9 Class c=null;
10
11 try {
12
13 c=Class.forName(args[0]);
14
15 System.out.println("package "+c.getPackage().getName()+";");
16
17 System.out.print(Modifier.toString(c.getModifiers())+" ");
18
19 System.out.print("class "+c.getSimpleName());
20
21 if(c.getSuperclass()!=Object.class){
22
23 System.out.print(" extends "+c.getSuperclass().getSimpleName());
24
25 }
26
27 Class[] inters=c.getInterfaces();
28
29 if(inters.length>0){
30
31  
Ïà¹ØÎĵµ£º
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔǰ£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......
1¡¢byteͨ³£ÓÃÀ´½øÐÐλÔËË㣬λ¿í¶ÈÕ£¬Ò»°ã²»ÓÃÀ´¼ÆËã
2¡¢¹Ø¼ü×Ö¶¼ÊÇСдµÄ£¬ÔÚeclipseÖÐÏÔʾΪºìÉ«¡£
3¡¢±äÁ¿¸øÁËȱʡµÄ³õʼֵ£¬CÓïÑÔû¸ø£¬Ö»¸ø·ÖÅäÁ˿ռ䣬ÀïÃæµÄÊý²»È·¶¨
4¡¢charµÄȱʡֵÊÇASCIIÂëÖеÚ1¸ö
5¡¢ÔËÐÐЧÂÊ£ºi++>i+=1>i=i+1
6¡¢²¼¶ûÖµ²»ÄܽøÐдóС±È½Ï£¬Ö»ÄܽøÐÐ==±È½Ï
7¡¢ÏÈËã&&ÔÙËã| ......
javaʵս¼¼ÇÉ--¹ØÓÚ¸ñʽ»¯Êä³öÈÕÆÚ
ʹÓÃSimpleDateFormat ¸ñʽ»¯Êä³öÈÕÆÚÓë
ʹÓÃCalendar ¸ñʽ»¯Êä³öÈÕÆÚ
ÔÚºÄʱÉϵĶԱÈÈçÏÂ
²âÊÔÈí¼þƽ̨
win 7,CUP T4200,ÄÚ´æ 2G,
eclipse 3.5,
android sdk1.5
²âÊÔÓ²¼þƽ̨
T Mobile G1,
SimpleDateFormatµÄÊä³öÒª±ÈCalendar Âý2±¶ÒÔÉÏ
SimpleDateFormatµÄ¸ñʽÓÐÏÞÖÆ
±ÈÈç ......
JavaÓïÑÔ¶¨ÒåÁËpublic¡¢protected¡¢private¡¢abstract¡¢staticºÍfinalÕâ6ÖÖ³£ÓÃÐÞÊδÊÍ⻹¶¨ÒåÁË5¸ö²»Ì«³£ÓõÄÐÞÊδʣ¬ÏÂÃæÊǶÔÕâ11¸öJavaÐÞÊδʵĽéÉÜ£º
1.public
ʹÓöÔÏó£ºÀà¡¢½Ó¿Ú¡¢³ÉÔ±
½éÉÜ£ºÎÞÂÛËüËù´¦Ôڵİü¶¨ÒåÔÚÄÄ£¬¸ÃÀࣨ½Ó¿Ú¡¢³ÉÔ±£©¶¼ÊǿɷÃÎʵÄ
2.private
ʹÓöÔÏ󣺳ÉÔ±
½éÉÜ£º³ÉÔ ......
/*
ÌṩzipÎļþµÄ½âѹËõ½Ó¿Ú£º
AdapterZipFile£º
ÊäÈ룺zipFileName£¨zipÎļþµÄ¾ø¶Ô·¾¶£©£¬outputDirectory£¨zipÎļþ½âѹËõºóµÄ´æ·Å·¾¶£©
Êä³ö£º
˵Ã÷£º³õʼ»¯º¯Êý
unZipFile£º
ÊäÈ룺ÎÞ
Êä³ö£º
˵Ã÷£º½âѹËõzipÎļþ£¬½âѹËõ ......