Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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 Card ¼¼Êõ(¶þ)

 
±¾ÏµÁÐÎÄÕÂµÄµÚ 1 ²¿·Ö½éÉÜÁË Java Card ¼¼ÊõµÄ¸ß¼¶ÖªÊ¶ —— ʲôÊÇÖÇÄÜ¿¨¡¢Java Card Ó¦ÓóÌÐòµÄÔªËØ¡¢Í¨ÐźͲ»Í¬ Java Card ¼¼Êõ¹æ·¶µÄ»ã×Ü¡£ÔÚ±¾²¿·ÖÖУ¬ÎÒÃǽ«Öصã½éÉÜ Java Card applet µÄ¿ª·¢£º¿ª·¢ Java Card Ó¦ÓóÌÐò¡¢Sun Java Card ¿ª·¢¹¤¾ßÏä¡¢Java Card ºÍ Java Card RMI API ʱËùÐèµÄÒ»°ã² ......

Java Card¿ª·¢³£Óõİü£¨ÕûÀí£©

 ÕûÀíÁËһϳ£Óõ½µÄJava¿¨¿ª·¢°üÀïµÄ·½·¨£¬ÒÔºó¾ÍÄܼӿ쿪·¢ËÙ¶ÈÁË¡£
//Java Card¿ª·¢·½·¨²éѯ
import java.lang.*;
import javacard.framework.*;
import javacard.security.*;
import javacardx.crypto.*;     //¸Ã°üΪÀ©Õ¹°ü
//install·½·¨
public static void install(byte[] bArray, ......

javaÑ­»·±éÀúmap

JDK1.4ÖÐ
Map map = new HashMap();
Iterator it = map.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Object key = entry.getKey();
Object value = entry.getValue();
}
JDK1.5ÖÐ,Ó¦ÓÃÐÂÌØÐÔFor-EachÑ­»·
Map m = new HashMap();
......

ðÅÝÅÅÐòËã·¨µÄjavaʵÏÖ

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class BubbleSort {
private static int a[] = new int[12];
private static BufferedReader in = new BufferedReader(
new InputStreamReader(System.in));
public static void bubbleSort(int a[], i ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ