摘要:
1 package jihe; 2 import java.util.*; 3 public class Emp { 4 5 private String e_id;//添加两个对象,并且将其私有化 6 private String e_name; 7 public Emp(String e_id,String e_name)//初始化私有对象 8 ...
阅读全文
posted @ 2016-06-01 10:00
曦~妍
阅读(209)
推荐(0)
摘要:
1 package shurushuchuliu; 2 import java.io.*; 3 public class Test5 { 4 5 public static void main(String[] args) { 6 try { 7 // 缓存的流 8 //匿名对象 9 1...
阅读全文
posted @ 2016-06-01 09:40
曦~妍
阅读(135)
推荐(0)
摘要:
1 package shurushuchuliu; 2 import java.io.*; 3 public class Test4 { 4 5 public static void main(String[] args) { 6 // 字符输出流 7 try{ 8 //准备File对象 9 Fi...
阅读全文
posted @ 2016-06-01 09:39
曦~妍
阅读(150)
推荐(0)
摘要:
1 package shurushuchuliu; 2 import java.io.*; 3 public class Test3 { 4 5 public static void main(String[] args) { 6 try { 7 // 准备文件对象 8 File file = ne...
阅读全文
posted @ 2016-06-01 09:24
曦~妍
阅读(177)
推荐(0)
摘要:
1 package shurushuchuliu; 2 import java.io.*; 3 public class Test2 { 4 5 public static void main(String[] args) { 6 // 操作目录 7 File ff=new File("d:/test1/test1.txt"); 8 ...
阅读全文
posted @ 2016-06-01 09:22
曦~妍
阅读(147)
推荐(0)
摘要:
1 package shurushuchu; 2 import java.io.*; 3 public class BinIoDemo { 4 5 public static void main(String[] args) { 6 // 3.编写BinIoDemo.java的Java应用程序,程序完成的功能是: 7 //完成1.d...
阅读全文
posted @ 2016-06-01 09:20
曦~妍
阅读(114)
推荐(0)
摘要:
1 package shurushuchu; 2 import java.io.*; 3 public class IoDemo { 4 5 public static void main(String[] args) { 6 7 try { 8 BufferedReader br=new Buffere...
阅读全文
posted @ 2016-06-01 09:19
曦~妍
阅读(147)
推荐(0)
摘要:
1 package shurushuchu; 2 import java.io.*; 3 public class TestRW { 4 5 public static void main(String[] args) { 6 /*1.编写TextRw.java的Java应用程序,程序完成的功能是:
阅读全文
posted @ 2016-06-01 09:18
曦~妍
阅读(136)
推荐(0)