i 绝望

依然

Miss Lang
  2013年11月10日
摘要: http://josh-persistence.iteye.com/blog/1880572http://www.iteye.com/topic/681623http://denyx123.iteye.com/blog/1122157http://zhxing.iteye.com/blog/543584http://gaojianqi6.iteye.com/blog/1336626http://gaolixu.iteye.com/blog/393477 阅读全文
posted @ 2013-11-10 23:53 juewang 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 总结:代码代码你认得我吗?package com.c2;import java.util.ArrayList;//listimport java.util.List;public class hgf { public static String listToString(List stringList) { if (stringList == null) { return null; } StringBuilder result = new StringBuilder(); boolean flag = true;// 这是个循环变量吗? for (String string :... 阅读全文
posted @ 2013-11-10 22:57 juewang 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 总结:方法。和之前的有不同,但是名字太长了+++++package com.aini;import java.io.*;public class ghd { public static void main(String[] args) { BufferedWriter out = null; try { out = new BufferedWriter(new BufferedWriter(out)); out.write("DFA");// 字符串型。。。 } catch (Exception E) { E.printStackTrace(); } }} 阅读全文
posted @ 2013-11-10 22:38 juewang 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 总结:package com.aini;import java.io.*;public class gf { public static String main(String[] args) throws IOException { BufferedWriter out = null;// H try { // out=new BufferedWriter(out);//cuo le out = new BufferedWriter(new FileWriter("filename", true)); out.write("MISS LANG a wo" 阅读全文
posted @ 2013-11-10 22:28 juewang 阅读(164) 评论(0) 推荐(0) 编辑
摘要: http://wenwen.soso.com/z/q218252928.htmhttp://zhidao.baidu.com/question/463015244.html 阅读全文
posted @ 2013-11-10 22:27 juewang 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 总结:FileInputStream fis;int length;while((length=fis.read(b,0,b.length))!=-1){ output.write(b,0,length);}}catch(){}finally{if(fis!=null) fis.close();if(output!=null) output.close();}return output.toByteArray();package com.aini;import java.io.ByteArrayOutputStream;import java.io.File;import java.io.*. 阅读全文
posted @ 2013-11-10 21:48 juewang 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 总结:流类无法理解啊——————package com.aini;import java.io.*;//流类//使用FileInputStream读取文件信息 public class ffg {// 这个byte真的是个字节方法。。。一个不能错 public static byte[] readFileByFileInputStream(File file) throws IOException { ByteArrayOutputStream oot = new ByteArrayOutputStream(); FileInputStream fis = null; try { ... 阅读全文
posted @ 2013-11-10 21:15 juewang 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 总结:BufferedInputStream();package com.aini;import java.io.*;//使用BufferedInputStream读取文件public class yhtrds { //这是一个方法 public static byte[] readFileByBufferedInputStream(File file){ BufferedInputStream bis; FileInputStream fis; ByteArrayOutputStream ot=new ByteArrayOutputStream();//字节数组输出流 try{/... 阅读全文
posted @ 2013-11-10 20:54 juewang 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 总结:输入流/输出流方法,变量;package com.aini;//流类。输入输出流import java.io.*;public class rtyeew {// (File file)这里是方法传递参数的意思吗。 public static void copyFileByFileOutputStream(File file) throws IOException { FileInputStream fis = null;// 复制 FileOutputStream fos = null;// 由于后面要关闭文件,所以这里要声明是null byte[] b = new byte[20... 阅读全文
posted @ 2013-11-10 20:18 juewang 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 总结:package com.aini;import java.io.*;public class tre { public static void main(String[] args) { int b; try { System.out.println("Please input:"); while ((b = System.in.read()) != -1) { System.out.print((char) b); } } catch (IOException e) { System.out.println(e.toString()); } }}//Ple... 阅读全文
posted @ 2013-11-10 12:12 juewang 阅读(238) 评论(0) 推荐(0) 编辑
摘要: 总结:package com.aini;import java.io.IOException;import java.io.InputStreamReader;//流类 import java.io.DataInputStream;import java.io.DataOutputStream;import java.io.FileNotFoundException;import java.io.OutputStreamWriter;import java.io.FileOutputStream;import java.io.OutputStreamWriter;import java.io. 阅读全文
posted @ 2013-11-10 10:56 juewang 阅读(251) 评论(0) 推荐(0) 编辑

绝望依然

Miss Lang