摘要:
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)
编辑
摘要:
总结:代码代码你认得我吗?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)
编辑
摘要:
总结:方法。和之前的有不同,但是名字太长了+++++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)
编辑
摘要:
总结: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)
编辑
摘要:
http://wenwen.soso.com/z/q218252928.htmhttp://zhidao.baidu.com/question/463015244.html
阅读全文
posted @ 2013-11-10 22:27
juewang
阅读(103)
推荐(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)
编辑
摘要:
总结:流类无法理解啊——————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)
编辑