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

javaÖ¸¶¨ÀàÐ͵ÄÎļþĿ¼¼°×ÓĿ¼ËÑË÷

package search;
import java.io.*;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* ¶ÁȡĿ¼¼°×ÓĿ¼ÏÂÖ¸¶¨ÎļþÃûµÄ·¾¶ ²¢·Åµ½Ò»¸öÊý×éÀïÃæ·µ»Ø±éÀú
*
*
*/
public class FileViewer {
public static void search(String path, String[] Extention, boolean isdepth,String Spath) {
    /* param path ËÑË÷Ŀ¼
     * param Extention À©Õ¹ÃûÁбí
     * param isdepth ÊÇ·ñÒªËÑË÷×ÓĿ¼
     * param Spath ´æ´¢Ä¿Â¼
     */
    String index="";
 for(int j=0; j<Extention.length;++j)
 {
List arrayList = FileViewer.getListFiles(path,Extention[j],true);
if(arrayList.isEmpty())
{
System.out.println("ûÓзûºÅÒªÇóµÄÎļþ");
}
else
{
String message = "";
message += "·ûºÅÒªÇóµÄÎļþÊý£º" + arrayList.size() + "\r\n";
System.out.println(message);
for (Iterator i = arrayList.iterator(); i.hasNext();)
{
String temp = (String) i.next();
System.out.println(temp);
message += temp + "\r\n";
}
//appendMethod(Spath,message);
 if(j==Extention.length-1) index+=message;
}
}
 System.out.println("\n\n\n**************\n"+index);
 appendMethod(Spath,index);
}
public static List fileList = new ArrayList();
/**
*
* param path Îļþ·¾¶
* param suffix ºó׺Ãû
* param isdepth ÊÇ·ñ±éÀú×ÓĿ¼
* ;return
*/
public static List getListFiles(String path, String suffix, boolean isdepth)
{
File file = new File(path);
return FileViewer.listFile(file ,suffix, isdepth);
}
public static List listFile(File f, String suffix, boolean isdepth)
{
//ÊÇĿ¼£¬Í¬Ê±ÐèÒª±éÀú×ÓĿ¼
if (f.isDirectory()&& isdepth == true)
{
File[] t = f.listFiles();
for (int i = 0; i < t.length; i++)
{
listFile(t[i], suffix, isdepth);
}
}
else
{
String filePath = f.getAbsolutePath();
if(suffix !=null)
{
int begIndex = filePath.lastIndexOf("


Ïà¹ØÎĵµ£º

java ÀûÓÃXSD ÑéÖ¤XMLÎļþ

XSDÎļþ £¨XML Schema ÓïÑÔÒ²³Æ×÷ XML Schema ¶¨Ò壨XML Schema Definition£¬XSD£©¡£ ¾ßÌåʹÓ÷½·¨ºÍ¶¨ÒåÇë²Î¿´£º
http://www.w3school.com.cn/schema/index.asp
java×Ôjdk1.5ÒÔÉÏÐÂÔöÁËSchemaFactoryÀà ¿ÉÒÔʵÏÖ¶ÔXSDÑéÖ¤µÄÖ§³Ö£¬Ê¹ÓÃÆðÀ´Ò²ºÜ·½±ã¡£
ÒÔÏ´úÂë¿ÉÓÃÔÚJDK1.5+ ÑéÖ¤xml
public class SimpleErrorHandler i ......

yourkit·ÖÎöjavaÐÔÄÜ

ÏîÄ¿ÐèÒª·ÖÎöÕû¸öϵͳµÄÉÏÏßÔËÐÐÐÔÄÜ,ËùÒÔÏÖÔÚÀëÉÏÏß»¹Ôç,µ«ÊDZØÐëÄ£Äâ²¢·¢ÏÖÒÔºó¿ÉÄܳöÏÖµÄÐÔÄÜÎÊÌâ.
Á½¸ö±È½ÏºÃµÄ¹¤¾ß:JProbe,yourkit java profile,¸Õ¿ªÊ¼×°ÁËJprobeµÄeclipse²å¼þ,ºóÀ´·¢ÏÖÕⶫÎ÷Ì«¸´ÔÓ,¶øÇÒ»¹±¨²»Ö§³Öjdk 1.6.û·¨·¢¿´µ½´ó¶àÊýÍøÓÑÑ¡Ôñyourkit,ËùÒÔÒ²ÏÂÁËÀ´,±Ï¾¹²»´ó,½á¹û·¢ÏÖËûÓкÜÍêÕûµÄÎĵµºÍflash ......

ʹÓÃservletºÍJava Bean·ÃÎÊMySQL

»·¾³: JDK 5.0 + Tomcat 5.5.4
JDK°²×°Â·¾¶: D:\Java\jdk1.5.0_01
Tomcat°²×°Â·¾¶:D:\Tomcat 5.5
ÉèÖû·¾³±äÁ¿(¿ØÖÆÃæ°å->ϵͳ->¸ß¼¶):
java_home=D:\Java\jdk1.5.0_01
path=%JAVA_HOME%\bin
classpath=.;D:\Java\jdk1.5.0_01\lib\dt.jar;D:\Java\jdk1.5.0_01\lib\tools.jar;D:\Tomcat 5.5\common\lib\se ......

java³£Óü¯ºÏÀàÏê½â

java³£Óü¯ºÏÀàÏê½â£¨ÓÐÀý×Ó£¬¾­µäÄÅ£¡£¡£¡¼¯ºÏÀàºýÍ¿µÄÀ´¿´°¡£¡£¡£©
Collections Framework
¼¯ºÏ¿ò¼ÜÊÇÒ»¸öͳһµÄ¼Ü¹¹,ÓÃÀ´±íʾºÍ²Ù×÷¼¯ºÏ.
¼¯ºÏ¿ò¼ÜÖ÷ÒªÊÇÓɽӿÚ,³éÏóÀàºÍʵÏÖÀ๹³É.
½Ó¿Ú:À¶É«£»ÊµÏÖÀࣺºìÉ«
Collection
|_____Set(HashSet)
|         |_____SortedSet(Tree ......

Javaѧϰ±Ê¼Ç£¨1£©JavaÓïÑÔ¼ò½é


Java ÊÇÒÔÀࣨclass£©µÄÐÎʽÀ´×éÖ¯³ÌÐò£¬²¢ÇÒ»¹Ó²ÐԹ涨£¬ËùÓÐÀàµÄµÄ¸ù½Úµã¶¼ÊÇObjectÀ࣬ÆäÓàµÄ¶¼ÊÇÆä×ÓÀà¡£
Java½öÖ§³Öµ¥¼Ì³Ð£¬¼´Ò»¸öÀàÖ»ÄÜÓÐÒ»¸ö¸¸Àà¡£
Java²»µ¥ÊÇÒ»¸öÃæÏò¶ÔÏóµÄ±à³ÌÓïÑÔ£¬ ³ýÁËÖ§³Ö¶ÔÏóÊý¾ÝÀàÐÍÍ⣬»¹Ö§³ÖһЩ»ù´¡Êý¾ÝÀàÐÍ£¬ÈçÕûÐÍ¡¢ÊµÐÍ¡¢×Ö·ûÐͺͲ¼¶ûÀàÐ͵ȡ£
JavaÓïÑÔµÄÓ¦ÓóÌÐò±à³ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ