摘要: public class Mul { public static void main(String[] args) { // 第一种方法 for (int i = 1; i <= 9; i++) { for (int j = 1; j <= 9... 阅读全文
posted @ 2014-04-29 22:06 mycome 阅读(218) 评论(0) 推荐(0) 编辑
摘要: public class TypeConversion { public static void main(String[] args) { byte b = 127; char c = 'w'; short s = 123; int i... 阅读全文
posted @ 2014-04-29 21:37 mycome 阅读(216) 评论(0) 推荐(0) 编辑
摘要: public class ToLog { public static void main(String[] args) throws Exception { //准备日志文件 File f = new File("log.txt"); if(!f.ex... 阅读全文
posted @ 2014-04-29 20:25 mycome 阅读(217) 评论(0) 推荐(0) 编辑
摘要: public class DoTXT { // 定义成员变量:路径,文件对象,临时变量 private String path; // 文件路径 private File f; private FileReader fr; // 所需文件流对象 private File... 阅读全文
posted @ 2014-04-29 20:23 mycome 阅读(233) 评论(0) 推荐(0) 编辑