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
Ïà¹ØÎĵµ£º
ÔÚijЩӦÓÃÖУ¬½«±¾¸ÃÓɶ¯Ì¬Ò³ÃæÃ¿´Î»ñÈ¡¿Í»§¶ËÇëÇóʱȥµ÷ÓÃÊý¾ÝµÄ¹ý³Ìת»»ÎªÔÚÌí¼ÓÊý¾Ýʱ¼´Éú³ÉΪ¾²Ì¬Ò³Ã棬ÕâÑù¶Ô·þÎñÆ÷µÄѹÁ¦£¬Êý¾Ý¿â¼ìË÷µÄѹÁ¦£¬ÒÔ¼°ËÑË÷ÒýÇæÊÕ¼£¬°üÀ¨·ÀÖ¹SQL×¢Èë¶¼ÊÇÓм«´óµÄºÃ´¦µÄ¡£³£¼ûµÄ×ö·¨ÓкܶàÖÖ£¬°üÀ¨web·þÎñÆ÷ÆôÓÃrewrite£¬io²Ù×÷Éú³ÉÎļþµÈµÈ£¬ÕâÀï ......
JavaºÜÓÕÈË£¬µ«¶ÔÓÚ¸Õ¿çÈëJavaÃż÷µÄ³õѧÕßÀ´Ëµ£¬±àÒë²¢ÔËÐÐÒ»¸öÎޱȼòµ¥µÄJava³ÌÐò¼òÖ±¾ÍÊÇÒ»¸ö¶ñÃΡ£Ã÷Ã÷³ÌÐòû´í£¬µ«¸÷ÖÖ¸÷ÑùÈÃÈËÃþ²»×ÅÍ·ÄԵĴíÎóÐÅÏ¢ÕæµÄÈÃÄã°Ù˼²»µÃÆä½â£¬Ðí¶àÔÚJavaÃÅ¿ÚÅÇ»²Á˺ܾõijõѧÕß¾ÍÕâÑù·ÅÆúÁËѧϰJavaµÄ»ú»á£¬ºÜÊÇ¿Éϧ¡£±ÊÕßÒ²¾Àú¹ýÕâ¸öÎÞ±ÈÍ´¿àµÄ½×¶Î£¬¸Ð¾õµ½±àÒëÄѵÄÎÊÌâ¾Í³öÔÚclasspat ......
»·¾³JDK1.5
Eclipse 3.2
Ö±½ÓÉÏ´úÂ룺Èç¹ûûÓÐÅäÖúû·¾³Çë²Î¿´Ç°Á½ÆªÈÕÖ¾
·þÎñÆ÷¶Ë´úÂë
UserÀࣺ
/*
*Class User.java
*Create Date: 2009-11-4
*Author:a276202460
*/
package com.axis.pojo.test;
public class User implements java.io.Serializable{
public boolean equals(Object obj) {
if (obj == ......
JavaµÄ¿½±´·ÖΪÉ±´ºÍdz¿½±´
dz¿½±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓã¬javaÖеÄÒýÓÃÏ൱ÓÚC/C++ÖеÄÖ¸Õë±äÁ¿)¶¼¿½±´Ò»±é£¬¶ø²»¿½±´ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏó
É±´£º°ÑÒ»¸ö¶ÔÏóÖÐËùÓеķÇstatic³ÉÔ±±äÁ¿(°üÀ¨¶ÔÆäËü¶ÔÏóµÄÒýÓÃ)¶¼¿½±´Ò»±é£¬ÒýÓÃËùÖ¸ÏòµÄ¶ÔÏóÒ²¿½±´Ò»·Ý
ÕâÆªÎÄÕÂÏȽ²Êödz¿½±´£ ......
ÉÏһƪÎÄÕ½²ÊöÁËdz¿½±´ºÍÉ±´µÄº¬Ò壬²¢ÇÒ¸ø³öÁËdz¿½±´µÄÒ»¸öÀý×Ó
ÕâÆªÎÄÕÂÔÚÄǸöÀý×ÓµÄʵÏÖÉÏ×÷³öÐ޸ģ¬ÊµÏÖÉ±´,´úÂëÈçÏ£º
package com.test;
public class CloneTest
{
public static void main(String[] args)
{
Student s1 = new Student();
s1.setAge(20);
s1.setName("wudi");
School sch ......