10 2014 档案
摘要:1 package test; 2 /* 3 * 1 2 3 4 5 4 * 16 17 18 19 6 5 * 15 24 25 20 7 6 * 14 23 ...
阅读全文
posted @ 2014-10-29 10:07
testman00
摘要:1 package test; 2 import java.io.*; 3 import java.nio.channels.FileChannel; 4 import java.util.*; 5 public class Test10_26 6 { 7 public st...
阅读全文
posted @ 2014-10-26 21:34
testman00
摘要:1 package test; 2 import java.io.*; 3 import java.nio.channels.FileChannel; 4 public class Test31 5 { 6 public static void main(String[] args) th...
阅读全文
posted @ 2014-10-26 11:07
testman00
摘要:1 package test; 2 3 import java.io.*; 4 import java.util.*; 5 6 public class Test20 7 { 8 public static void main(String[] args) throws Excepti...
阅读全文
posted @ 2014-10-25 19:38
testman00
摘要:1 package test; 2 3 /** 4 * SequenceInputStream合并流,将与之相连接的流集组合成一个输入 流并从第一个输入流开始读取, 直到到达文件末尾,接着从第二个输入流读取,依次类推,直到到达 包含的最后一个输入流的文件末 尾为止。 合并流的作用是将多个源合并...
阅读全文
posted @ 2014-10-25 19:03
testman00
摘要:先列点代码片段:// ...//// 此段代码功能为从 t.txt 里复制所有数据到 out_j.txt://...1 FileChannel fcin = new FileInputStream( "d:/t.txt" ).getChannel();2 FileChannel fcout = ne...
阅读全文
posted @ 2014-10-25 18:52
testman00
摘要:1 package test; 2 3 import java.io.FileInputStream; 4 import java.io.FileOutputStream; 5 import java.nio.ByteBuffer; 6 import java.nio.channels.*; 7...
阅读全文
posted @ 2014-10-25 18:48
testman00
摘要:1 package test; 2 /* 3 * 打印 指定目录下和子目录下的的所有.java文件的路径. 4 * */ 5 import java.io.*; 6 import java.util.*; 7 8 public class Test14 9 {10 public st...
阅读全文
摘要:1 package test; 2 3 /* 4 * 需求: 判断指定目录下的所有[图片]的扩展名, 并打印出文件名. 5 * 6 * */ 7 import java.io.File; 8 import java.io.FilenameFilter; 9 10 class Pictur...
阅读全文
posted @ 2014-10-25 09:23
testman00
摘要:BufferedInputStream 自带 8M 缓冲区,我们自己又定义 byte[] buf = new byte[1024*1024];那 bis.read(buf) 就会去, 8M 缓冲区取数据, 读到自己的 1M 缓冲区, 直到碰到 bos.write(buf,0,len) 把1M缓冲区的...
阅读全文
posted @ 2014-10-24 00:29
testman00
摘要:package com.itheima.net;public class Game13{ public static void main(String[] args) { String s1 = "135adbfg67"; String s2 = "125db...
阅读全文
posted @ 2014-10-23 22:11
testman00
摘要:1 package test; 2 3 import java.io.*; 4 import java.util.*; 5 6 public class Test6 7 { 8 public static void main(String[] args) throws Exceptio...
阅读全文
posted @ 2014-10-23 21:29
testman00
摘要:1 public static String toUnicode(String s) 2 { 3 String as[] = new String[s.length()]; 4 String s1 = ""; 5 for (int i = 0...
阅读全文
posted @ 2014-10-23 19:15
testman00

浙公网安备 33010602011771号