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

JavaÎļþ¶ÔÏó´´½¨Ä¿Â¼ºÍÎļþ

   ÔÚjavaÖÐòËƲ»ÄÜͬʱ´´½¨Ä¿Â¼ºÍÎļþ£¬ÐèÒª·Ö²¼´´½¨£¬¼´²»ÄÜÔÚ´´½¨Ä¿Â¼µÄʱºò£¬Í¬Ê±´´½¨¸ÃĿ¼ÏµÄÎļþ£¬Èç¹ûÒª´´½¨µÄ»°£¬ÐèÒª·ÖÁ½²½£¬Ï±ßÊÇ´´½¨µÄ´úÂëJava´úÂë try {              String path = "D:/test/d.txt";              File file = new File(path);              if (!file.getParentFile().exists()) {                  file.getParentFile().mkdirs();              }                            file.createNewFile();                  FileWriter fw = new FileWriter(file);                  fw.write("test");                  fw.close();          } catch (IOException e) {              e.printStackTrace();          }  


Ïà¹ØÎĵµ£º

¼ÆËã»újavaѧϰÐĵÃ

Èí¼þ¿ª·¢Ö®Â·ÊdzäÂú¾£¼¬ÓëÌôս֮·,Ò²ÊdzäÂúÏ£Íû֮·¡£JavaѧϰҲÊÇÈç´Ë£¬Ã»Óнݾ¶¿É×ß¡£ÃÎÏëÏñ¡¶ÌìÁú°Ë²¿¡·ÖÐÐéÖñÒ»Ñù
±»ÎÞÑÂ×Óõ®õ­¹à¶¥¶øÇáËÉ»ñµÃÒ»¼××Ó¹¦Á¦,ÊǺܲ»ÏÖʵµÄ¡£Ã¿ÌìÑöÌì´ó½Ð"ÌìÉñ°¡£¬Çë´Í¸øÎÒÒ»±¾¿û»¨±¦µä°É"£¬
Êâ²»Öª¼´Ê¹Äã»ñµÃÁË¿û»¨±¦µä£¬³ýÁËÊÜ×Ô¹¬ÆäÉíÖ®¿àÍ⣬ÄãÒ²²»Ò»¶¨³ÉµÃÁË"¶«·½²»°Ü"£¬µ¹ÊdzÉ"Î÷· ......

JavaµÄÄÚ´æй©

JavaµÄÄÚ´æй©
===========================================================
×÷Õß: shwenwen(http://shwenwen.itpub.net)
·¢±íÓÚ: 2009.06.04 10:38
·ÖÀà: java¿ª·¢¼¼Êõ
³ö´¦: http://shwenwen.itpub.net/post/34911/485404
---------------------------------------------------------------
²»¹ÜÓÃjava C++ ......

java³£ÓÃÀà blobFileBean

package com.whlongyi.sys.blob.bean;
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
im ......

javaʵÏÖÊý×éµÄËùÓÐ×éºÏ

ϸ½ÚÉÏÐèÒª¸Ä½ø¡£
import java.util.*;
public class Map {
Vector<int[]> v = new Vector<int[]>();
Vector<Integer> vv = new Vector<Integer>();
Map() {
int[] array = { 1, 2, 3, 4, 5 };
Scanner s = new Scanner(System.in);
int x = s.nextInt();
pro(array, 0, x);
for(int i=0 ......

ÊÕ¼¯µ½µÄjava ÕýÔòÑéÖ¤ Ô´Âë


import java.util.regex.*;   
  
public final class RegExpValidator   
{   
    /**  
     * ÑéÖ¤ÓÊÏä  
     * @param ´ýÑéÖ¤µÄ×Ö·û´®   ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ