06 2012 档案
摘要:注:小实验,非完成的作品.SERVER端:import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import java.net.*; public class TextEditor { JFrame ft=new JFrame("TextEditor"); TextArea ta=new TextArea("",80,60); JTextField tf=new JTextField(); BorderLayout bl=new Border
阅读全文
摘要:import java.awt.*;import java.awt.event.*;import java.io.*;public class TextEditor { Frame ft=new Frame("TextEditor"); TextArea ta=new TextArea("",80,...
阅读全文
摘要:import java.io.*; public class InputStreamTest { public static void main(String args[]) { FileReader in=null; //同样,要先申明再赋值,因为赋值要try FileWriter out=null; int b=0; try { in=new FileReader("C:/$user/ADI/BetAppl/$LOG_BOOKS/INV/UC60_BALANCE_158.Txt"); ...
阅读全文
摘要:目的:通过FileInputStream类读入txt文件,然后利用Map这个容器统计txt文件中每个字符出现的次数.import java.util.*;import java.io.*;public class ArgsMap { public static void main(String args[]) { FileInputStream f=null; try { f=new FileInputStream("io.txt"); } catch(Exception a) {System.out.println(a);} System.out.println(&quo
阅读全文