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

javaʵÏÖ É¾³ýÊäÈëµÄ¶àÓà¿Õ¸ñ

/*
*    lfsfxy9 @ 09.12.25
*  Ö÷ÒªÓÃÓÚÈ¥³ý×Ö·ûÊäÈë¹ý³ÌÖжàÊäÈëµÄ¿Õ¸ñ¡£
*  ´Ë´úÂëΪJava×÷Òµ
*/
import java.io.*;
public class fileinout {     public static void main(String[] orgs){
        char c;
        int c1;
        int a=0;//¿Õ¸ñ¼ÆÊýÓà ¡£
        File filePath=new File("temp");
        if(!filePath.exists()) filePath.mkdirs();
        File f1=new File(filePath,"d1.txt");
        try{
            FileOutputStream fout=new FileOutputStream(f1);
            System.out.println("ÇëÊäÈë×Ö·û´®£¬ÒÔ#×÷Ϊ½áÊø·û .");
            while ((c=(char)System.in.read())!='#'){
                fout.write(c);
            }
            fout.close();
            System.out.println("´òÓ¡´ÓÎļþÖжÁÈëµÄÊý¾Ý ");
            FileInputStream fin=new FileInputStream(f1);
            c1=fin.read();
            System.out.print((char)c1);
            while ((c1=fin.read())!=-1){
       &#


Ïà¹ØÎĵµ£º

JAVAÒÆλÔËËã·û

       ÒÆλÔËËã·û¾ÍÊÇÔÚ¶þ½øÖƵĻù´¡É϶ÔÊý×Ö½øÐÐƽÒÆ¡£
       °´ÕÕƽÒƵķ½ÏòºÍÌî³äÊý×ֵĹæÔò·ÖΪÈýÖÖ£º<<£¨×óÒÆ£©¡¢>>£¨´ø·ûºÅÓÒÒÆ£©ºÍ>>>£¨ÎÞ·ûºÅÓÒÒÆ£©¡£
¡¡¡¡ÔÚÒÆλÔËËãʱ£¬byte¡¢shortºÍcharÀàÐÍÒÆλºóµÄ½á¹û»á±ä³ÉintÀàÐÍ£¬ ......

JavaÁ¬½Ó¸÷ÖÖÊý¾Ý¿âµÄÅäÖ÷½·¨

JavaÁ¬½Ó¸÷ÖÖÊý¾Ý¿âµÄÅäÖ÷½·¨MySQL
£ºString Driver="com.mysql.jdbc.Driver"
;  //Çý¶¯³ÌÐòString URL="jdbc:mysql://localhost:3306/db_name"
;  //Á¬½ÓµÄURL,db_nameΪÊý¾Ý¿âString Username="username"
;  //Óû§ÃûString Password="password"
;  / ......

×·MMÓëJavaµÄ23ÖÖÉè¼Æģʽ

1¡¢FACTORY—×·MMÉÙ²»ÁËÇë³Ô·¹ÁË£¬Âóµ±À͵ļ¦³áºÍ¿ÏµÂ»ùµÄ¼¦³á¶¼ÊÇMM°®³ÔµÄ¶«Î÷£¬ËäÈ»¿ÚζÓÐËù²»Í¬£¬µ«²»¹ÜÄã´øMMÈ¥Âóµ±ÀÍ»ò¿ÏµÂ»ù£¬Ö»¹ÜÏò·þÎñԱ˵“À´Ëĸö¼¦³á”¾ÍÐÐÁË¡£Âóµ±ÀͺͿϵ»ù¾ÍÊÇÉú²ú¼¦³áµÄFactory
¡¡¡¡¹¤³§Ä£Ê½£º¿Í»§ÀàºÍ¹¤³§Àà·Ö¿ª¡£Ïû·ÑÕßÈκÎʱºòÐèҪijÖÖ²úÆ·£¬Ö»ÐèÏò¹¤³§ÇëÇó¼´¿É¡£Ïû·ÑÕ ......

ÎÒÃÇÍŶӵÄJava֮·µÄ¹æ»®

Java֮·¼Æ»®
˵Ã÷£ºÓÉÓÚÎÒÃÇÍŶÓÆäËû³ÉÔ±¶¼²»ÊÇ×öjava¿ª·¢µÄ£¬µ«ÊÇÂíÉ϶¼Òª¼¯ÌåתÏòJava£¬ËùÒÔÊÇÎÒÕûÀíÁËһϣ¬»¹ÊDZȽÏÊÊÓÃÓÚ³õѧÕߵģ¬¸ßÊÖÃÇÒ²¿ÉÒÔÌáÌáÒâ¼û
       ÔÚ¿ªÊ¼Õâ¸ö¼Æ»®Ç°£¬ÎÒÏ뻹ÊÇÏëºÍ´ó¼Ò·ÖÏíÒ»ÏÂÎÒ¶ÔδÀ´Java֮·µÄã¿ã½£¬ËäÈ»JavaµÄĸ¹«Ë¾SunÔÚ¾­ÊÜ×ÅOracle¹«Ë¾ÊÕ¹º£¬µ¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ