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

java¶ÁÎļþ ÂÒÂë

/**
 *
 */
package com.dongyun.peas2.system.web.action;
///**
// * @author Administrator
// *
// */
//public class ABcom {
//
// /**
//  *
//  */
// public ABcom() {
//  // TODO Auto-generated constructor stub
// }
//
// /**
//  * @param args
//  */
// public static void main(String[] args) {
//  // TODO Auto-generated method stub
//
// }
//
//}
import java.io.*;
public class ABcom {
//¹¦ÄÜ:¶ÁÈ¡f:/aillo.txtÎļþµÄÄÚÈÝ(Ò»ÐÐÒ»ÐжÁ),²¢½«ÆäÄÚÈÝдÈëf:/jackie.txtÖÐ
//֪ʶµã:java¶ÁÎļþ¡¢Ð´Îļþ---<ÒÔ×Ö·ûÁ÷·½Ê½>
    public static void main(String[] args) {
        try {
         FileInputStream fr = new FileInputStream("e:/question.txt");
         BufferedReader br = new BufferedReader( new InputStreamReader(fr, "UTF-8") );// /****×Ö½ÚÁ÷¿ÉÒ԰ѱàÂë½øÐÐÉèÖᣡ£ÎÊÌâ½â¾ö
//            FileReader fr = new FileReader("e:/question.txt");//´´½¨FileReader¶ÔÏó£¬ÓÃÀ´¶ÁÈ¡×Ö·ûÁ÷
//            BufferedReader br = new BufferedReader(fr);    //»º³åÖ¸¶¨ÎļþµÄÊäÈë
            FileWriter fw = new FileWriter("e:/jackie.txt");//´´½¨FileWriter¶ÔÏó£¬ÓÃÀ´Ð´Èë×Ö·ûÁ÷
            BufferedWriter bw = new BufferedWriter(fw);    //½«»º³å¶ÔÎļþµÄÊä³ö
            String myreadline;    //¶¨ÒåÒ»¸öStringÀàÐ͵ıäÁ¿,ÓÃÀ´Ã¿´Î¶ÁÈ¡Ò»ÐÐ
            while (br.ready()) {
                myreadline = br.readLine();//¶ÁÈ¡Ò»ÐÐ


Ïà¹ØÎĵµ£º

¡¶Effective Java¡·: ¿¼ÂÇÓþ²Ì¬¹¤³§·½·¨´úÌæ¹¹Ô캯Êý

¿¼ÂÇÓþ²Ì¬¹¤³§·½·¨´úÌæ¹¹Ô캯Êý
Àà¿ÉÒÔΪËüµÄ¿Í»§ÌṩһЩ¾²Ì¬¹¤³§·½·¨£¬À´Ìæ´ú¹¹Ô캯Êý£¬»òÕßͬʱҲÌṩһЩ¹¹Ô캯Êý¡£
 ¾²Ì¬¹¤³§·½·¨µÄÒ»¸öºÃ´¦ÊÇ£¬Óë¹¹Ô캯ÊýÏà±È£¬¾²Ì¬¹¤³§·½·¨¾ßÓÐÃû×Ö£¬Ëü¿ÉÒÔʹµÃ´úÂë¸üÈÝÒ×ÔĶÁ¡£Èç¹ûÒ»¸öÀà¿´ÆðÀ´ÐèÒª¶à¸ö¹¹Ô캯Êý£¬²¢ÇÒËüÃǵÄÔ­ÐÍÌØÕ÷Ïàͬ£¬ÄÇôÄãÓ¦¸Ã¿¼ÂÇÓþ²Ì¬¹¤³§·½·¨À´ ......

java×Ö·û´®µÄ¸÷ÖÖ±àÂëת»»

import java.io.UnsupportedEncodingException;
/**
* ת»»×Ö·û´®µÄ±àÂë
*/
public class ChangeCharset {
/** 7λASCII×Ö·û£¬Ò²½Ð×÷ISO646-US¡¢Unicode×Ö·û¼¯µÄ»ù±¾À­¶¡¿é */
public static final String US_ASCII = "US-ASCII";
/** ISO À­¶¡×Öĸ±í No.1£¬Ò²½Ð×÷ ISO-LATIN-1 */
public static final String ISO_ ......

ÀûÓÃJAVA²Ù×÷EXCELÎļþ


תÔØ×Ô£ºwww.csdn.net
2003 Äê 1 ÔÂ
ÔÚ¿ªÔ´ÊÀ½çÖУ¬ÓÐÁ½ÌױȽÏÓÐÓ°ÏìµÄAPI¿É¹©Ê¹Óã¬Ò»¸öÊÇPOI£¬Ò»¸öÊÇjExcelAPI¡£ÆäÖÐjExcelAPIÊÇÒ»¸öº«¹ú³ÌÐòÔ±µÄ×÷Æ·£¬ËäȻûÓÐPOIÄÇÑùѪͳ¸ß¹ó£¬µ«ÊÇÔÚ±ÊÕßµÄʹÓùý³ÌÖУ¬¸Ð¾õ¼òµ¥·½±ã£¬¶ÔÖÐÎÄÖ§³Ö·Ç³£ºÃ£¬¹¦ÄÜÒ²±È½ÏÇ¿´ó¡£ËüµÄÏÂÔصØÖ·ÊÇ£ºhttp://www.andykhan.com/jexcelapi/ µ±Ç ......

JavaÖÐÈÃCPU±£³ÖÔÚÒ»ÌõÖ±ÏßÉÏ


 /**
  * @param args
  */
 public static void main(String[] args) {
  long time1 = System.currentTimeMillis();
  long time2 = System.currentTimeMillis();
  while (true) {
   while ((time1 - time2) < 30)
   & ......

Çë´ó¼ÒÖ¸½Ì£¬ÓйØJavaÖÐmain·½·¨¼°²ÎÊýÎÊÌâ

½ñÌìûʸɡ££¬ÄÃJavaÖеÄmainº¯ÊýÀ´Ịֽ̀¬¡£¡£»¹ÇëÖîλָµã°¡£¬£¬
public static void main(String args [])
{
 .....
}
ÕâÊÇ´ó¼ÒÒ»°ãµÄд·¨°É£¬ÕâÀïÎÒÏëÌ̵ֽÄÖ÷ÒªÓÐÒÔϼ¸µã£º
1.ËüµÄ²ÎÊýÎÊÌ⣬ÄǸö²ÎÊýµ¹µ×ÓкÎÓÃÄØ£¬£¬ÕâÊǺÜÁîÈËÃÔ»óµÄ£¬ÕâÀï×Ô¼ºÐ´Á˸öÀý×ÓÊÔÁËһϣ¬µ«ÊdzöÏÖÁËÒì³££º
 class A
{ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ