i 绝望

依然

Miss Lang
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页
  2013年11月11日
摘要: 总结: 在文件输入流内,记得关闭流package com.b;import java.io.*;//使用try-catch语句捕获异常public class ygre { public static void main(String[] args) { try { int c; FileInputStream fis = new FileInputStream("lg"); while ((c = fis.read()) != -1) { System.out.println(c); } fis.close();// 再循环外面关闭文件。 } catch (Fi... 阅读全文
posted @ 2013-11-11 14:07 juewang 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 总结:字符转换package com.b;//流类import java.io.*;public class uy { // 读取字符 public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); char c; do { c = (char) bf.read();// String 型 } while (c != 'p'); }} 阅读全文
posted @ 2013-11-11 13:45 juewang 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 总结:异常,方法、package com.b;import java.io.BufferedReader;import java.io.InputStreamReader;//流类import java.io.InputStream;public class dfa { // 读取字符串 public static void main(String[] args) throws Exception { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String c; do { c =... 阅读全文
posted @ 2013-11-11 13:23 juewang 阅读(145) 评论(0) 推荐(0) 编辑
  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) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 31 下一页

绝望依然

Miss Lang