摘要: 1. 字符串有整型的相互转换String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int 2. 向文件末尾添加内容 BufferedWriter out = null; try { out = new BufferedWriter(new FileWriter(”filename”, true)); out.write(”aString”); } catch (IOException e) { ... 阅读全文
posted @ 2013-12-05 13:53 Mr_Wangsg 阅读(478) 评论(0) 推荐(0)