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

Java IOѧϰ±Ê¼Ç£º×Ö·ûÁ÷

Java IOѧϰ±Ê¼Ç£º×Ö·ûÁ÷
 
×Ö·ûÁ÷µÄ´¦ÀíºÍ×Ö½ÚÁ÷²î²»¶à£¬API»ù±¾ÉÏÍêȫһÑù£¬¾ÍÊǼÆÁ¿µ¥Î»²»Í¬¡£ÁíÍâ×Ö·ûÁ÷»¹ÌṩһЩÆäËûµÄ´¦ÀíÁ÷£¬±ÈÈç°´ÐжÁÈ¡Á÷¡¢×Ö·û´®Á÷µÈµÈ¡£
 
ÏÂÃæ¸ø¸öÀý×Ó¿´¿´£º
 
import java.io.*;
/**
* ×Ö·ûÁ÷²âÊÔ
*
* @author leizhimin 2008-8-27 22:16:44
*/
public class TestIOStream {
    public static void main(String[] args) {
        testReaderWriter();
        testLineNumberReader();
    }
    /**
     * ´ø»º³åµÄ×Ö·ûÁ÷
     */
    public static void testReaderWriter() {
        int bufsize = 25;
        try {
            BufferedReader bufferedReader = new BufferedReader(new FileReader(new File("C:\\x.txt")));
            BufferedWriter bufferedWriter = new BufferedWriter(new FileWriter(new File("C:\\xb.txt")));
            char buf[] = new char[bufsize];     //×Ö·û»º³åÇø
            while (bufferedReader.read(buf) != -1) {
                bufferedWriter.write(buf);
            }
            bufferedWriter.flush();
            bufferedReader.close();
            bufferedWriter.close();
        } catch (FileN


Ïà¹ØÎĵµ£º

Java³£ÅöÃæÊÔÌâ

1¡¢jspºÍservletµÄÇø±ð¡¢¹²Í¬µã¡¢¸÷×ÔÓ¦Óõķ¶Î§£¿£¿
JSPÊÇServlet¼¼ÊõµÄÀ©Õ¹£¬±¾ÖÊÉϾÍÊÇServletµÄ¼òÒ×·½Ê½¡£JSP±àÒëºóÊÇ“Ààservlet”¡£ServletºÍJSP×îÖ÷ÒªµÄ²»Í¬µãÔÚÓÚ£¬ServletµÄÓ¦ÓÃÂß¼­ÊÇÔÚJavaÎļþÖУ¬²¢ÇÒÍêÈ«´Ó±íʾ²ãÖеÄHTMLÀï·ÖÀ뿪À´¡£¶øJSPµÄÇé¿öÊÇJavaºÍHTML¿ÉÒÔ×éºÏ³ÉÒ»¸öÀ©Õ¹ÃûΪ.jspµÄÎļþ¡£J ......

ʵսÌå»áJava¶àÏ̱߳à³Ì¾«Òª

     ÔÚ Java ³ÌÐòÖÐʹÓöàÏß³ÌÒª±ÈÔÚ C »ò C++ ÖÐÈÝÒ׵ö࣬ÕâÊÇÒòΪ Java ±à³ÌÓïÑÔÌṩÁËÓïÑÔ¼¶µÄÖ§³Ö¡£±¾ÎÄͨ¹ý¼òµ¥µÄ±à³ÌʾÀýÀ´ËµÃ÷ Java ³ÌÐòÖеĶàÏß³ÌÊǶàôֱ¹Û¡£¶ÁÍê±¾ÎÄÒÔºó£¬Óû§Ó¦¸ÃÄܹ»±àд¼òµ¥µÄ¶àÏ̳߳ÌÐò¡£
 
¡¡   Ϊʲô»áÅŶӵȴý?
¡¡¡¡ÏÂÃæµÄÕâ¸ö¼òµ¥µÄ Java ³ÌÐ ......

JAVAÁ·Ï°Ìâ


¡ñÒÑÖªÔ²µÄÃæ»ýArea=π*r*r£¬Çó°ë¾¶r¡£
import javax.swing.JOptionPane;
public class T6 {
 public static void main(String args[]) {
  String s = JOptionPane.showInputDialog("ÇëÊäÈëÔ²Ãæ»ý£º");
  double Area = Double.parseDouble(s);
  double r;
  r = Math.sqrt(Area / M ......

Siebel Java Data Bean: Query muti record

Following code is used for retrive all the record of Business Component from DataBase. package com.muti.records ;
import com.siebel.data.*;
import com.siebel.data.SiebelException;
public class DataBeanDemo {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ