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

ʹÓÃJavaÔÚÎļþÀï²åÈëÒ»ÐÐ

ÔÚÎļþÀïÔö¼ÓÒ»ÐеÄΨһ·½·¨¾ÍÊǶÁȡԭʼÎļþ£¬È»ºóдÈëµ½Ò»¸öÁÙʱÎļþ£¬Í¬Ê±Ð´ÈëÒª²åÈëµÄÊý¾Ý¡£È»ºóɾ³ýԭʼÎļþ£¬ÔÙ°ÑÁÙʱÎļþ¸ÄÃûΪԭʼÎļþÃû¡£
package net.java2000.io; 
 
import java.io.BufferedReader; 
import java.io.File; 
import java.io.FileInputStream; 
import java.io.FileOutputStream; 
import java.io.InputStreamReader; 
import java.io.PrintWriter; 
public class FileInsertRow { 
 
  public static void main(String args[]) { 
    try { 
      FileInsertRow j = new FileInsertRow(); 
      j.insertStringInFile(new File(args[0]), Integer.parseInt(args[1]), args[2]); 
    } catch (Exception e) { 
      e.printStackTrace(); 
    } 
  } 
 
  /**
   * ÔÚÎļþÀïÃæµÄÖ¸¶¨ÐвåÈëÒ»ÐÐÊý¾Ý
   * 
   * @param inFile
   *          Îļþ
   * @param lineno
   *          ÐкÅ
   * @param lineToBeInserted
   *          Òª²åÈëµÄÊý¾Ý
   * @throws Exception
   *           IO²Ù×÷Òý·¢µÄÒì³£
   */ 
  public void insertStringInFile(File inFile, int lineno, String lineToBeInserted) 
      throws Exception { 
    // ÁÙʱÎļþ 
    File outFile = File.createTempFile("name", ".tmp"); 
 
    // ÊäÈë 
    FileInputStream fis = new FileInputStream(inFile); 
    BufferedReader in = new BufferedReader(new InputStreamReader(fis)); 
 
    //


Ïà¹ØÎĵµ£º

JAVA ÔÚͼÏñ´¦ÀíÖеÄÓ¦ÓÃ

ÏàÐÅ´ó¼ÒƽʱÅöµ½¹ýһЩÔÚJAVAÖжÔͼÏñ½øÐд¦ÀíµÄÐèÇ󣬱ÈÈçÐèÒª¶ÔÉÏ´«µÄͼƬ¼ÓÉÏ×Ô¼ºµÄÇ©Ãû»òͼ±ê£¬»òÕßÉú³ÉºÍ½âÎö¶¯Ì¬µÄGIFͼƬ£¬ÒÔ¼°´¦ÀíPSDÎļþͼÏñÐÅÏ¢¡£±¾ÎľÍJAVAÔÚͼÏñ´¦ÀíÖÐһЩ»ù±¾Ó¦ÓýøÐÐÁ˽éÉÜ¡£Ï£Íûͨ¹ýÄܹ»¶Ô´ó¼ÒÔÚÒÔºóµÄͼÏñ´¦ÀíÖÐÓÐЩ°ïÖú¡£
Ò»¡¢¶ÔÒ»¸öÏÖÓеÄͼƬ½øÐÐÎÄ×ÖºÍͼ±êµÄºÏ³É
ÎÒÃÇÏÈ´ÓÏÂÃæµÄÕâ ......

JAVA ¿ì½Ý¼ü

¿´ÁËjava˽ÛÓµÄÖм¶ÊÓÆµ£¬¸Ð¾õºÜÈ«Ãæ£¬×ܽáÕûÀí³öÁËһЩEclipse¿ì½Ý¼ü£¬Ï£Íû¶ÔÓÐÓõÄÅóÓÑÓÐËù°ïÖú£º
Ctrl+1 ¿ìËÙÐÞ¸´(×î¾­µäµÄ¿ì½Ý¼ü,¾Í²»Óöà˵ÁË)
Ctrl+D: ɾ³ýµ±Ç°ÐÐ
Ctrl+Alt+↓ ¸´ÖƵ±Ç°Ðе½ÏÂÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Ctrl+Alt+↑ ¸´ÖƵ±Ç°Ðе½ÉÏÒ»ÐÐ(¸´ÖÆÔö¼Ó)
Alt+↓ µ±Ç°ÐкÍÏÂÃæÒ»Ðн»»¥Î»ÖÃ(ÌØ±ðʵ ......

JAVAÅàѵÌâ¿â AJAX

1.AJAX»ù´¡ÖªÊ¶_Ñ¡ÔñÌâ
1. AjaxÓÐËÄÖÖ¼¼Êõ×é³É£ºDOM,CSS,JavaScript£¬XmlHttpRequestÖпØÖÆÎĵµ½á¹¹µÄÊÇ£º£¨ £©
A  DOM
B  CSS
C  javascript   
D  XMLHttpRequest
²Î¿¼´ð°¸£ºA
2. ÔÚAjaxµÄËÄÖÖ¼¼ÊõÖУ¬¿ØÖÆÍ¨ÐŵÄÊÇÄÄÒ»¸ö£¿£¨ £©
A  DOM
B  CSS
C  javasc ......

JAVAÅàѵÌâ¿â JavaScript

1. JavaScriptÊÇÒ»ÃÅ»ùÓÚ½âÊÍÐÔµÄÓïÑÔ£¬ËüºÍjavaÓïÑÔµÄÇø±ð£¿
²Î¿¼´ð°¸£ºjavaÓïÑÔÖбäÁ¿µÄÊý¾ÝÀàÐÍ×ÜÌå¿ÉÒÔ·ÖΪ£º»ù±¾Êý¾ÝÀàÐͺͶÔÏóÀàÐÍ¡£JSÓïÑÔÖеıäÁ¿ÊÇûÓÐÊý¾ÝÀàÐ͵쬵«ÊÇJSµÄ»ù±¾³ÌÐò¿ØÖƺÍjavaÊÇÒ»ÑùµÄÔÚJavaScriptÓïÑÔÖУ¬ËäÈ»±äÁ¿ÊÇûÓÐÊý¾ÝÀàÐÍ»òÕßÊÇÈôÊý¾ÝÀàÐ͵«ÊÇËûÃǵÄÖµÊÇÓÐÈýÖÖ»ù±¾Êý¾ÝÀàÐ͵ķֱðÊÇÊý×Ö¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ