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

java ²é¿´Îļþ¼ÐÏÂÃæËùÓÐÎļþÒÔ¼°Îļþ¼Ð

import java.io.File;
import java.util.Date;
import java.util.Iterator;
import java.util.Vector;
import java.text.SimpleDateFormat;
public class FileViewer {
  File myDir;
  File[] contents;
  Vector vectorList;
  Iterator currentFileView;
  File currentFile;
  String path;
  public FileViewer() {
    path = new String("");
    vectorList = new Vector();
  }
  public FileViewer(String path) {
    this.path = path;
    vectorList = new Vector();
  }
  /**
   * ÉèÖÃä¯ÀÀµÄ·¾¶
   */
  public void setPath(String path) {
    this.path = path;
  }
  /***
   * ·µ»Øµ±Ç°Ä¿Â¼Â·¾¶
   */
  public String getDirectory() {
    return myDir.getPath();
  }
  /**
   * Ë¢ÐÂÁбí
   */
  public void refreshList() {
    if (this.path.equals("")) {
      path = "c:\\";
    }
    myDir = new File(path);
    vectorList.clear();
    contents = myDir.listFiles();
    //ÖØÐÂ×°Èë·¾¶ÏÂÎļþ
    for (int i = 0; i < contents.length; i++) {
      vectorList.add(contents[i]);
    }
    currentFileView = vectorList.iterator();
  }
  /**
   * ÒÆ¶¯µ±Ç°Îļþ¼¯ºÏµÄÖ¸ÕëÖ¸µ½ÏÂÒ»¸öÌõÄ¿
   * @return ³É¹¦·µ»Øtrue,·ñÔòfalse
   */
  public boolean nextFile() {
    while (currentFileView.hasNext()) {
      currentFile = (File) currentFileView.next();
      return true;
    }
    return false;
  }
  /**
   * ·µ»Øµ±Ç°Ö¸ÏòµÄÎļþ¶ÔÏóµÄÎļþÃû³Æ
   */
  public String


Ïà¹ØÎĵµ£º

JavaÓïÑÔ»îµÄjdk¡¢jreºÍ²Ù×÷ϵͳ°æ±¾µÈÐÅÏ¢

      System.out.println(System.getProperty("java.version")); //java°æ±¾ºÅ
System.out.println(System.getProperty("java.vendor")); //JavaÌṩÉÌÃû³Æ
System.out.println(System.getProperty("java.vendor.url")); //JavaÌṩÉÌÍøÕ¾
System.out.println( ......

¼ò½à°æjava»ù´¡ÖªÊ¶Ð¡È«

1. »·¾³±äÁ¿µÄÅäÖãºpathºÍclasspathÖ¸Ïòjava/binĿ¼Ï£»
2. javaÓïÑÔµÄÌØµã£º¿ÉÒÆÖ²£¬ÃæÏò¶ÔÏ󣬷ֲ¼ÐÔ£¬½¡×³ÐÔ£¬°²È«ÐÔ£¬¼òµ¥ÐÔ£¬¸ßÐÔÄÜ£¬¶àỊ̈߳¬¶¯Ì¬ÐÔ¡£
3. Êý¾ÝÀàÐÍ£º
   ÕûÐÍ£º×Ö½ÚÐÍ£¨byte 1×Ö½Ú£© ¶ÌÕûÐÍ£¨short 2×Ö½Ú£© »ù±¾ÐÍ£¨int 4×Ö½Ú£© ³¤ÕûÐÍ£¨long 8×Ö½Ú£©£»
   ¸¡µãÐÍ£ºµ¥¾«¶È¸ ......

´«ÖDz¥¿ÍJAVAÅàѵ2010 5 18 spring


´«ÖDz¥¿ÍJAVAÅàѵ2010-5-18 spring
SpringµÄ»ù±¾Ê¹Óúܼòµ¥¡£µ«ÊǶÔÒ»¸öÏëÒª³ÉΪ¸ßÊÖµÄÈËÀ´½²£¬ÎҸоõ»¹ÊÇÓÐÏ൱µÄÄѶȣ¬ÌرðÊÇÔÚ¶Ìʱ¼äµÄ·¶Î§Ö®ÄÚ£¬ÄÑÉϼÓÄÑŶ£¡´ó¼Ò¶¼ÖªµÀÊÕ»ñÊǺ͸¶³ö³ÉÕý±ÈµÄ£¬¶øÑ§Ï°£¬ÓÖ²»Ò»¶¨ÊǸ¶³ö¶¼ÓÐÊÕ»ñµÄ£¬»¹µÃ¿´ÎòÐԺͻù´¡¡£¾ÍºÃ±ÈÒ»¸öûÓÐÉϹý¸ßÖеÄѧÉúÖ±½ÓÓɳõÖÐÌøµ½´óѧ£¬ºó¹û¿ÉÏëÖ ......

javaÒýÓÃ


class Tank{
 int level;
}
public class Assignment {
 public static void main(String[] args) {
  
  Tank t1 = new Tank();
  Tank t2 = new Tank();
  t1.level= 9;
  t2.level= 47;
  
  System.out.println("1:t1.l ......

Java and XML_¶ÁÊé±Ê¼Ç_2010 5 18

2010-05-18
Îå¡¢ÑéÖ¤XML
l  ÊôÐÔÁËÌØÕ÷·½·¨
·½   ·¨
·µ»ØÀàÐÍ
²Î    Êý
Óï    ·¨
setProperty()
void
String propertyId,
Object value
parser.setProperty(“[Property URI]”,
”[Object parameter]”);
setFeature()
void
String feat ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ