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

Java ²Ù×÷Îı¾ ·â×°Àà

package com.sidi.card.util;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
 * ÓÃÓÚ¶ÔÎı¾µÄ²Ù×÷
 *
 * @author ÖìÖ¾½Ü
 *
 */
public class NoteOperate {
    // txtÎļþ·¾¶
    private String filePath;
    /**
     * ¹¹Ô캯Êý
     *
     * @param filePath
     *            Îı¾Îļþȫ·¾¶
     */
    public NoteOperate(String filePath) {
        this.filePath = filePath;
    }
    /**
     * ¹¹Ô캯Êý
     *
     * @param file
     *            ÐèÒª¶ÁÈ¡µÄÎı¾Îļþ
     */
    public NoteOperate(File file) {
        this.filePath = file.getPath();
    }
    /**
     * ÅжÏÎı¾ÎļþÊÇ·ñ´æÔÚ
     *
     * @return ´æÔÚ·µ»Øtrue ·ñÔò·µ»Øfalse
     */
    public boolean exists() {
        File file = new File(this.filePath);
        return file.exists();
    }
    /**
     * µÃµ½Õâ¸ötxtËùÓеÄÁеÄÊý¾Ý ¿ÕÐн«×Ô¶¯Ìø¹ý,²¢×Ô¶¯É¾³ýÎÄ×ÖÇ°ºóµÄ¿Õ¸ñ
     *
     * @return List<String>
     * @throws IOException
     */
    public List<String&g


Ïà¹ØÎĵµ£º

¶ÁÎļþ£¨java£©


ʹÓÃJava²Ù×÷Îı¾ÎļþµÄ·½·¨Ïê½â
ÕªÒª: ×î³õjavaÊDz»Ö§³Ö¶ÔÎı¾ÎļþµÄ´¦ÀíµÄ£¬ÎªÁËÃÖ²¹Õâ¸öȱº¶¶øÒýÈëÁËReaderºÍWriterÁ½¸öÀ࣬ÕâÁ½¸öÀ඼ÊdzéÏóÀ࣬WriterÖÐ write(char[] ch,int off,int
length)£¬flush()ºÍclose()·½·¨Îª³éÏó·½·¨£¬ReaderÖÐread(char[] ch,int off,int length)ºÍclose()·½·¨ÊdzéÏó·½·¨¡£×ÓÀàÓ¦¸Ã·Ö± ......

JAVA Á¬½ÓORACLEÊý¾Ý¿â´úÂë

import java.net.url;
import java.sql.*;
public class javaoracle {
public javaoracle() {
}
public static void main(string[] args){
try
{
try{
class.forname("oracle.jdbc.driver.oracledriver");
}
catch(java.lang.classnotfoundexception e)
{
system.err.print(e.getmessage());
} ......

JavaÐéÄâ»úµÄÉîÈëÑо¿

JavaÐéÄâ»úµÄÉîÈëÑо¿
×÷ÕߣºÁõѧ³¬
1  Java¼¼ÊõÓëJavaÐéÄâ»ú
˵ÆðJava£¬ÈËÃÇÊ×ÏÈÏëµ½µÄÊÇJava±à³ÌÓïÑÔ£¬È»¶øÊÂʵÉÏ£¬JavaÊÇÒ»ÖÖ¼¼Êõ£¬ËüÓÉËÄ·½Ãæ×é³É: Java±à³ÌÓïÑÔ¡¢JavaÀàÎļþ¸ñʽ¡¢JavaÐéÄâ»úºÍJavaÓ¦ÓóÌÐò½Ó¿Ú(Java API)¡£ËüÃǵĹØϵÈçÏÂͼËùʾ£º
ͼ1  JavaËĸö·½ÃæµÄ¹Øϵ
ÔËÐÐÆÚ»·¾³´ú±í ......

JavaÖÐserialVersionUIDµÄ½âÊÍ

serialVersionUID×÷Óãº
       ÐòÁл¯Ê±ÎªÁ˱£³Ö°æ±¾µÄ¼æÈÝÐÔ£¬¼´ÔÚ°æ±¾Éý¼¶Ê±·´ÐòÁл¯ÈÔ±£³Ö¶ÔÏóµÄΨһÐÔ¡£
ÓÐÁ½ÖÖÉú³É·½Ê½£º
       Ò»¸öÊÇĬÈϵÄ1L£¬±ÈÈ磺private static final long serialVersionUID = 1L;
       Ò»¸öÊǸù¾ÝÀàÃû¡¢½Ó¿ÚÃû¡¢³ÉÔ±·½ ......

java Map ±éÀúËÙ¶È×îÓŽâ

java Map ±éÀúËÙ¶È×îÓŽâ
µÚÒ»ÖÖ:
Map map = new HashMap();
Iterator iter = map.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
Object key = entry.getKey();
Object val = entry.getValue();
}
ЧÂʸß,ÒÔºóÒ»¶¨ÒªÊ¹ÓôËÖÖ·½Ê½£¡
µÚ¶þÖÖ:
Map map = ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ