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

java ioÕýÈ·¶ÁÈ¡

дÈë
 public static void Writer(String value) {
         try{
          File file2 = new File("F:\\countDB.txt");
          if(!file2.exists()){
            file2.createNewFile();
          }
          FileOutputStream writer = new FileOutputStream(file2,true);
          OutputStreamWriter rp = new OutputStreamWriter(writer,"GBK");
          BufferedWriter tmpBR = new BufferedWriter(rp,1024*1024);
          tmpBR.write(value+"\r\n");
          tmpBR.flush();
          tmpBR.close();
          rp.flush();
          rp.close();
          writer.flush();
          writer.close();
         }catch(Exception ex){
          //ex.fillInStackTrace();
         }
         
     }
²éѯ
File file = new File("E:\\DB.txt");
       FileInputStream read = new FileInputStream(file);
       InputStreamReader rp = new InputStreamReader(read,"GBK");
       BufferedReader tmpBR = new BufferedReader(rp,1024*1024);
       String tmpLine = tmpBR.readLine();
      
       while (tmpLine != null) {
    &n


Ïà¹ØÎĵµ£º

java lang°ü

StringBuffer s = “abc”;               //¸³ÖµÀàÐͲ»Æ¥Åä
         StringBuffer s = (StringBuffer)”abc”;    //²»´æÔڼ̳йØϵ£¬ÎÞ·¨½øÐÐǿת
StringBuffer¶ ......

java ºÍ.netµÄMD5¼ÓÃܲ»Ò»Ñù£¿£¡

ÓÉÓÚ¹¤×÷ÐèÒª£¬ÒªÓÃ.netµÄ³ÌÐòµ÷ÓÃÒ»¸öjava±àдµÄweb service½Ó¿Ú£¬½Ó¿ÚµÄÒ»¸ö²ÎÊýÒªÇómd5·½Ê½¼ÓÃÜ¡£
.netÖеÄmd5¼ÓÃÜÊǺÜÈÝÒ׵ģ¬²ÉÓÃmsdnÖиø³öµÄ·½·¨:
// Hash an input string and return the hash as
// a 32 character hexadecimal string.
static string getMd5Hash(string input)
{
......

javaС³ÌÐò£¨3£©

¡¾ÎÄÕ±êÌâ¡¿javaС³ÌÐò£¨3£©
¡¾ÎÄÕÂ×÷Õß¡¿Ôø½¡Éú
¡¾×÷ÕßÓÊÏä¡¿zengjiansheng1@126.com
¡¾×÷ÕßQQ¡¿190678908
¡¾×÷ÕßÉùÃ÷¡¿±¾ÈËˮƽÓÐÏÞ£¬Ê§ÎóÖ®´¦£¬¾´Çë¸÷λָ³ö¡£±¾ÈËÒÔǰдµÄһЩС³ÌÐò£¬·ÖÏíÒ»ÏÂÏ£Íû¶Ô¸÷λѧϰjavaÓаïÖú ^-^
***************************************************************************** ......

Java´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÍêÈ«¹¥ÂÔ

0¡¡ÒýÑÔ
´Ó¿ØÖÆ̨ÖжÁÈ¡Êý¾ÝÊÇÒ»¸ö±È½Ï³£ÓõŦÄÜ£¬ÔÚ JDK 5.0 ÒÔÇ°µÄ°æ±¾ÖеÄʵÏÖÊDZȽϸ´Ôӵģ¬ÐèÒªÊÖ¹¤´¦ÀíϵͳµÄÊäÈëÁ÷¡£ÓÐÒâ˼µÄÊÇ£¬´Ó JDK 5.0 °æ±¾¿ªÊ¼£¬ÄÜ´Ó¿ØÖÆ̨ÖÐÊäÈëÊý¾ÝµÄ·½·¨Ã¿Ôö¼ÓÒ»¸ö°æ±¾ºÅ£¬¾ÍÓÐÒ»ÖÖÐÂÔöµÄ·½·¨£¬ÕâÒ²Ôö¼ÓÁËÑ¡ÔñµÄÖÖÀ࣬¿ÉÒÔÒÀ¾Ý²»Í¬µÄÒªÇóÀ´½øÐÐÑ¡Ôñ¡£ÏÂÃæÀ´¿´Ò»Ï£¬¸÷¸ö°æ±¾ÖÐÈçºÎ´Ó¿ØÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ