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

javaÁ·Ï°Ì⣬ºÜÈõÖÇ£¬µ«±Ï¾¹¾ø´ó²¿·ÖÊÇ×Ô¼ºÐ´µÄ

import java.io.*;
public class CheckVirusFile

   int virusCount=0,del_count=0,spe_count=0,nameCount=0;
   //ÓõݹéµÄ·½·¨¼ì²éFileÀàÐ͵IJÎÊýÊÇÎļþ»¹ÊÇĿ¼
   public void judgeDir(File virFile)
   {   
  if(!virFile.isDirectory())
   ScanVirus(virFile);
  else
  {
  File fileVirus[]=virFile.listFiles();
  for(int i=0;i<fileVirus.length;i++)
  judgeDir(fileVirus[i]);
  }
 } 
   
 //¶ÔÎļþ½øÐÐɨÃ裬ÅжÏÊÇ·ñº¬ÓÐ"danger"×Ö¶Î
 public void ScanVirus(File virusFile)
 {
   System.out.println("ÕýÔÚɨÃè"+virusFile+"......");
   boolean isVirus=false;
   if(virusFile.getName().endsWith(".bat"))//Èç¹ûÎļþÒÔ.batΪºó׺£¬Ö±½Óɾ³ý
   {
         virusCount++;
      System.out.println("·¢ÏÖ²¡¶¾,λÓÚ"+virusFile);
    boolean isDelete=virusFile.delete();
    if(isDelete)
    {  
     del_count++;
     System.out.println("ɾ³ý³É¹¦"+'\n');
    }
    else
     System.out.println("ÓÉÓÚijÖÖÔ­Òò£¬ÎÞ·¨É¾³ý²¡¶¾Îļþ");
   }
   else   //Èç¹ûÎļþ²»ÒÔ.batΪºó׺£¬ÔòÖðÐÐɨÃèÎļþ£¬Èç·¢ÏÖ"danger"×ֶΣ¬
           //Ôòµ÷ÓÃÒƶ¯²¡¶¾ÎļþµÄ·½·¨½øÐд¦Àí
   {
        try
   {
                String temp=null;
    FileReader in=new FileReader(virusFile);
    BufferedReader bIn=new BufferedReader(in);//Á÷µÄÌ×½


Ïà¹ØÎĵµ£º

ʵÏÖJavaÁ¬½Ómysql£¨Ô´Â룩£¡

JavaÁ¬½ÓmysqlÊý¾Ý¿â£¬´úÂë¾­¹ýÔËÐÐ׼ȷÎÞÎó¡£
ÏÂÃæΪʵÀý---->
ÓÃÊý¾Ý¿â²Ù×ݹ¤¾ß£¨Àý£ºSQLyogEnt£©²Ù×Ýmysql½¨±í£¬»òdosϽ¨£¬ÈçÏ£º
Êý¾Ý¿âÃû£ºscutcs
±íÃû£ºstudent
±íÄÚÈÝ£º
sno  char[7]  NO NULL Primary Key;
sname  varchar[8]  NO NULL;
sex  char[2]  NO NULL; ......

Developing Games in Java£¨²¿·Ö£©

   Ô­ÎÄÀ´×ÔÓÚ¡¶Developing Games in Java¡·£¬×÷ÕߣºDavid Brackeen, Bret Barker, Laurence Vanhelsuwé
   JavaÔÚÉè¼Æʱ³ä·Ö¿¼ÂÇÁËÏß³Ì,Òò´ËÔÚJavaÖÐÏ̵߳IJÙ×÷±ÈÆäËûÓïÑÔÒª¼òµ¥¡£Ö»ÐèÉú³ÉÒ»¸öThreadÀàµÄʵÀý±ã¿É´´½¨Ò»¸öỊ̈߳¬È»ºóµ÷ÓÃstart()·½·¨Ï߳̾ÍÆô¶¯ÁË¡£
 &nbs ......

javaÖÐabstractÓëinterface

   abstract  classºÍinterfaceÊÇJavaÓïÑÔÖжÔÓÚ³éÏóÀඨÒå½øÐÐÖ§³ÖµÄÁ½ÖÖ»úÖÆ£¬ÕýÊÇÓÉÓÚÕâÁ½ÖÖ»úÖƵĴæÔÚ£¬²Å¸³ÓèÁËJavaÇ¿´óµÄÃæÏò¶ÔÏóÄÜÁ¦¡£ abstract  classºÍinterfaceÖ®¼äÔÚ¶ÔÓÚ³éÏóÀඨÒåµÄÖ§³Ö·½Ãæ¾ßÓкܴóµÄÏàËÆÐÔ£¬ÉõÖÁ¿ÉÒÔÏ໥Ìæ»»£¬Òò´ËºÜ¶à¿ª·¢ÕßÔÚ½øÐгéÏóÀඨÒåʱ¶ÔÓÚ abstract  cl ......

JavaÖØдÓëÖØÔØ

ÖØдµÄÖ÷ÒªÓŵãÊÇÄܹ»¶¨Òåij¸ö×ÓÀàÌØÓеÄÌØÕ÷:
       Èç:
    public class Father
    {
             public void speak()
         &nb ......

Java½Ó¿ÚºÍJava³éÏóÀà

ÔÚûÓкúõØÑÐÏ°ÃæÏò¶ÔÏóÉè¼ÆµÄÉè¼Æģʽ֮ǰ£¬ÎÒ¶ÔJava½Ó¿ÚºÍJava³éÏóÀàµÄÈÏʶ»¹ÊǺÜÄ£ºý£¬ºÜ²»¿ÉÀí½â¡£
¸ÕѧJavaÓïÑÔʱ£¬¾ÍºÜÄÑÀí½âΪʲôҪÓнӿÚÕâ¸ö¸ÅÄËä˵ÊÇ¿ÉÒÔʵÏÖËùνµÄ¶à¼Ì³Ð£¬¿ÉÒ»¸öÖ»Óз½·¨Ãû£¬Ã»Óз½·¨ÌåµÄ¶«Î÷£¬ÎÒʵÏÖËüÓÖÓÐʲôÓÃÄØ£¿ÎÒ´ÓËüÄÇʲôҲµÃ²»µ½£¬³ýÁËһЩ·½·¨Ãû£¬ÎÒÖ±½ÓÔÚ¾ßÌåÀàÀï¼ÓÈëÕâЩ·½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ