Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

XPϵͳÏÂJavaÐÞ¸ÄÎļþ»òÎļþ¼ÐÊôÐԵĴúÂë¡£

 2009-11-09  15:33:36
ÎļþÊôÐÔÅäÖÃÀà
package cn.sist.file;
public class FileProperty {
private int sysProperty = 0;
private int hiddenProperty = 0;
private int readProperty = 0;
private int arriveProperty = 0;
private boolean changeAll = false;


public FileProperty setChangeAll(boolean changeAll){
this.changeAll = changeAll;
return this;
}

public boolean getChangeAll(){
return this.changeAll;
}
protected int getArriveProperty() {
return arriveProperty;
}
public FileProperty addArriveProperty() {
this.arriveProperty = 1;
return this;
}
public FileProperty removeArriveProperty(){
this.arriveProperty = 2;
return this;
}
protected int getHiddenProperty() {
return hiddenProperty;
}
public FileProperty addHiddenProperty() {
this.hiddenProperty = 1;
return this;
}
public FileProperty removeHiddenProperty(){
this.hiddenProperty = 2;
return this;
}
protected int getReadProperty() {
return readProperty;
}
public FileProperty addReadProperty() {
this.readProperty = 1;
return this;
}
public FileProperty removeReadProperty(){
this.readProperty = 2;
return this;
}
protected int getSysProperty() {
return sysProperty;
}
public FileProperty addSysProperty() {
this.sysProperty = 1;
return this;
}
public FileProperty removeSysProperty(){
this.sysProperty = 2;
return this;
}
}

ÎļþÐÞ¸ÄÀà
package cn.sist.file;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
public class FilePropertyChange {
private static final String xpCommand = "cmd /c attrib";
private static final String[] xpSysProperty = {"","+s","-s"};
private static final String[] xpHiddenProperty = {"","+h","-h"};
private static final String[] xpArriveProperty = {"","+a","-a"};
private static final String[] xpReadOnlyProperty = {"","+r","-r"};
/*
* defaultFileProperty onl


Ïà¹ØÎĵµ£º

JavaµÄÉ±´ºÍdz¿½±´(2)

ÉÏһƪÎÄÕ½²ÊöÁËdz¿½±´ºÍÉ±´µÄº¬Ò壬²¢ÇÒ¸ø³öÁËdz¿½±´µÄÒ»¸öÀý×Ó
ÕâÆªÎÄÕÂÔÚÄǸöÀý×ÓµÄʵÏÖÉÏ×÷³öÐ޸ģ¬ÊµÏÖÉ±´,´úÂëÈçÏ£º
package com.test;
public class CloneTest
{
public static void main(String[] args)
{
Student s1 = new Student();
s1.setAge(20);
s1.setName("wudi");
School sch ......

·Ç³ÏÎðÈÅ£º2010Ó¦½ì±ÏÒµÉú java³ÌÐòÔ±


¸öÈ˼òÀú
¸öÈËÐÅÏ¢
ÐÕÃû
£º

Öì½ð¹ú
 
     
ÐÔ±ð
£º

ÄÐ
³öÉúÈÕÆÚ
£º
1988
Äê
1
ÔÂ
9
ÈÕ
                   
Email
£º
zhujinguo2009@gmail.com
  ......

JAVAѧϰµÄÒ»Ð©ÖØµã


1. JavaÓïÑÔ»ù´¡
̸µ½JavaÓïÑÔ»ù´¡Ñ§Ï°µÄÊé¼®£¬´ó¼Ò¿Ï¶¨»áÍÆ¼öBruce EckelµÄ¡¶Thinking in Java¡·¡£ËüÊÇÒ»±¾Ð´µÄÏ൱Éî¿ÌµÄ¼¼ÊõÊé¼®£¬JavaÓïÑÔ»ù´¡²¿·Ö»ù±¾Ã»ÓÐÆäËüÈκÎÒ»±¾Êé¿ÉÒÔ³¬Ô½Ëü¡£¸ÃÊéµÄ×÷ÕßBruce EckelÔÚÍøÂçÉϱ»³ÆÎªÌì²ÅµÄͶ»úÕߣ¬×÷Õߵġ¶Thinking in C++¡·ÔÚ1995ÄêÔø»ñSoftwareDevelopment Jolt Award×î¼ÑÊ ......

java Ñ­»·´òÓ¡³öij¶ÔÏóËùÔÚÀàµÄÀàÃûºÍ·½·¨

java Ñ­»·´òÓ¡³öij¶ÔÏóËùÔÚÀàµÄÀàÃûºÍ·½·¨
public class A {

public void b(){}
public void c(){}
public void d(){}
public void e(){}
}
import java.lang.reflect.*;
public class StaticTest {

public static void test(Object obj)
{
Class myclass = obj.getClass();
//System.out.prin ......

JavaÐòÁл¯Óë·´ÐòÁл¯½²½â

¡¡¡¡Ê×ÏȽâÊÍÁ½¸ö¸ÅÄî,ºÎΪÐòÁл¯?ºÎΪ·´ÐòÁл¯?
¡¡¡¡ÐòÁл¯:½«¶ÔÏóת»¯³ÉÁ÷µÄ¹ý³Ì³ÆÎªÐòÁл¯
¡¡¡¡·´ÐòÁл¯:½«Á÷ת»¯³É¶ÔÏóµÄ¹ý³Ì³ÆÖ®Îª·´ÐòÁл¯
¡¡¡¡ÐòÁл¯Óë·´ÐòÁл¯±ØÐë×ñÊØµÄÔ­Ôò
¡¡¡¡a) Java¶ÔÏó
¡¡¡¡ÔÚjavaÖÐÒªÏëʹһ¸öjava¶ÔÏó¿ÉÒÔʵÏÖÐòÁл¯Óë·´ÐòÁл¯,±ØÐëÈøÃÀàʵÏÖjava.io.Serializable½Ó¿Ú
¡¡¡¡java.io.S ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ