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

javaÊý¾Ý½á¹¹

ÓÃÊý¾Ý½á¹¹ÀïµÄµÝ¹éËã·¨Ôõôȥ´ÓµçÄÔÉÏ»ñÈ¡×ÊÔ´¹ÜÀíÆ÷ÀïÃæµÄÎļþÒªÇó°´Ê÷×´½á¹¹Êä³ö£¿
Java code:
public class FindFile {
public void findFile(File f,String fileType){//fΪĿ¼Îļþ,fileTypeΪÎļþÀàÐÍ(ºó׺postfix),
File[] ff=f.listFiles();
for(File f1:ff){
if(f1.isFile()&&f1.getName().endsWith(fileType)){//ÎļþÃûÒÔʲô½áβ¾ÍÊÇʲôÎļþ
System.out.println(f1);
}
if(f1.isDirectory()){
findFile(f1,fileType);
}
}
}

public static void main(String[] args){
FindFile ff=new FindFile();
ff.findFile(new File("D:\\Îı¾Îĵµ"), ".txt");
}

}

²»ÊÇÊ÷×´Êä³ö£¬Äã×Ô¼ºµ÷ÕûÏÂ

лл  ²»ÊÇÀíÏëµÄ   

import java.io.File;
public class TestListFile {
    private File file;
    public TestListFile(String filePath) {
    file = new File(filePath);
    listFile(file,0);
    }
   
    public void listFile(File tmpFile,int indent) {
    if(tmpFile.isFile() == true) {
    printPrefix(indent);
    System.out.println(tmpFile.getName());
    return;
  &nbs


Ïà¹ØÎÊ´ð£º

java×Ö·û´®ºÍjspÒ³Ãæת»»

ÓиöjavaµÄ×Ö·û´®str£¬¸ñʽ´ó¸ÅÊÇÕâÑù str="1.****** \n  2.****************\n";
ÔÚ³ÌÐòÖдòÓ¡Õâ¸ö×Ö·û´®Ã»ÓÐÎÊÌ⣬ÄÜÕýÈ·»»ÐУ¬¿ÉÊÇͨ¹ý¶ÔÏ󴫵ݵ½jspÒ³Ã棬ʹÓÃel±í´ïʽµÄ·½Ê½È´²»ÄÜ»»ÐÐÁË£¬Ç ......

ÔÚjspÖÐÓÃsessionÔõôʵÏÖ¹ºÂò¹¦ÄÜ - Java / Web ¿ª·¢

ÎÒÏë×ö¹»¹ºÎï³µÓÃsession µ«ÊDz»ÖªµÀÔõô»ñÈ¡¹ºÂòÊýÁ¿ Ë­ÓоßÌåµÄ´úÂëÂð Ï£ÍûÄܸîÉá

ÏÂÃæÊǹºÎï³µµÄºËÐÄ´úÂë 
ÓÐÁËÕâ¸ö ¾ÍÓ¦¸ÃÄܹ»×ö³öÀ´°É
Java code:

public void doPost(HttpServletRequest reque ......

¹ØÓÚjavaÀ࣬ת·¢jspÒ³ÃæÎÊÌâ

package com;

import java.io.IOException;

import javax.servlet.jsp.PageContext;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import ......

×ÔѧJavaµÄÅóÓÑÀ´Ì¸Ì¸°É

±¾ÈËÊǷǼÆËã»úרҵµÄ Ó¦¸Ã˵»¹ÊǸöÆ«ÎĵÄרҵ Ö»ÒòΪ×Ô¼ºÊÇÀí¿ÆÉú ´óһʱ½Ó´¥ÁËCÓïÑÔ ´Ó´Ë¶Ô³ÌÐò¸ÐÐËȤÁË
Ò»Ö±×Ô¼º×ÔѧJava £¬J2SE JSP MYSQL Servlet HibernateһֱѧÏÂÀ´ ÏÖÔÚÄÜÓÃMVCģʽ×öBBSÁË Ö»ÊÇǰ̨µÄ¶« ......

ÏëѧϰÏÂJAVAϵÄMVC¼Ü¹¹¡£

ÏëѧϰÏÂJ2SEϵÄMVC¼Ü¹¹¡£Ï£Íû´ó¼ÒÍƼöµã×ÊÔ´¸øÎÒ£¬×îºÃÓÐMVCʵÀýµÄ¡£

J2SEµÄ²»»á
J2EEµÄµ½ÊÇÖªµÀµã£¬ÄãÏÈ´ÓJSP+servlet+javaBeanѧϰ°É£¬ÕÆÎÕÁËÖ®ºó£¬ÔÙѧϰѧϰstruts£¡

ÒýÓÃ
J2SEµÄ²»»á
J2EEµÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ