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

javaɾ³ýÎļþ¼Ð

    1. package book.io;  
   2.  
   3. import java.io.File;  
   4.  
   5. /** 
   6.  *  
   7.  * @author XWZ 
   8.  * 2007-11-27 
   9.  * ɾ³ýÎļþ»òĿ¼ 
  10.  */ 
  11. public class DeleteFileUtil {  
  12.     /** 
  13.      * ɾ³ýÎļþ£¬¿ÉÒÔÊǵ¥¸öÎļþ»òÎļþ¼Ð 
  14.      * @param   fileName    ´ýɾ³ýµÄÎļþÃû 
  15.      * @return Îļþɾ³ý³É¹¦·µ»Øtrue,·ñÔò·µ»Øfalse 
  16.      */ 
  17.     public static boolean delete(String fileName){  
  18.         File file = new File(fileName);  
  19.         if(!file.exists()){  
  20.             System.out.println("ɾ³ýÎļþʧ°Ü£º"+fileName+"Îļþ²»´æÔÚ");  
  21.             return false;  
  22.         }else{  
  23.             if(file.isFile()){  
  24.                   
  25.                 return deleteFile(fileName);  
  26.             }else{  
  27.  &nb


Ïà¹ØÎĵµ£º

Thinking In Java Notes

1. ¶ÔÓÚÒ»¸östatic·½·¨¶øÑÔ£¬ÎÞ·¨·ÃÎÊ·ºÐÍÀàµÄÀàÐͲÎÊý£¬ËùÒÔ£¬Èç¹ûstatic·½·¨ÐèҪʹÓ÷ºÐÍÄÜÁ¦£¬¾Í±ØÐëʹÆä³ÉΪ·ºÐÍ·½·¨¡£
2. µ±Ê¹Ó÷ºÐÍÀàʱ£¬±ØÐëÔÚ´´½¨¶ÔÏóµÄʱºòÖƶ¨ÀàÐͲÎÊýµÄÖµ£¬¶øÊÇÓ÷ºÐÍ·½·¨µÄʱºò£¬Í¨³£²»±ØÖ¸¶¨²ÎÊýÀàÐÍ£¬ÒòΪ±àÒëÆ÷»áΪÎÒÃÇÕÒ³ö¾ßÌåµÄÀàÐÍ¡£Õâ³ÆΪÀàÐͲÎÊýÍƶϡ£ ......

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

 JavaµÄ¿½±´·ÖΪÉ±´ºÍdz¿½±´
dz¿½±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓã¬javaÖеÄÒýÓÃÏ൱ÓÚC/C++ÖеÄÖ¸Õë±äÁ¿)¶¼¿½±´Ò»±é£¬¶ø²»¿½±´ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏó
É±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓÃ)¶¼¿½±´Ò»±é£¬ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏóÒ²¿½±´Ò»·Ý
ÕâƪÎÄÕÂÏȽ²Êödz¿½±´£ ......

Java Card ¼¼Êõ(¶þ)

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

Java SE6 ϵͳÍÐÅÌСӦÓùþ

 /**
* @(#)MyTray.java
*
*
* @author Xie Xiaojin
* @version 1.00 2009/11/9
*/
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class MyTray implements ActionListener {
private MenuItem item1;
private MenuItem item2;
private MenuItem item3;
private ......

Java¿ªÔ´Éí·ÝÑéÖ¤


 JOSSO 
JOSSO(Java Open Single Sign-On)ÊÇÒ»¸ö¿ªÔ´µÄJ2EE-basedµÄSSO(SSO£ºµ¥Ò»µÇ¼¼¼ÊõÊÇÒ»ÖÖÈÏÖ¤ºÍÊÚȨ»úÖÆ£¬ËüÔÊÐí×¢²áÓû§Ö»ÐèÒªÔÚÈÎÒ»³ÉÔ±ÍøÕ¾ÉϵǼһ´Î£¬¶øºóÊÚȨ·ÃÎÊÆäËûÁ¬½ÓµÄ·ÖÖ§ÍøÕ¾£¬ÎÞÐèÔÙ½øÐÐÑéÖ¤µÇ¼)»ù´¡½á¹¹.ËüµÄÄ¿µÄÊÇÌṩһÖÖÓÃÀ´½â¾öÔÚͳһƽ̨ÉϽøÐÐÓû§¼¯ÖÐÈÏÖ¤µÄ·½°¸.
¸ü¶àJOSSOÐÅÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ