2014年1月15日

20非常有用的Java程序片段

摘要: 转自:http://coolshell.cn/articles/889.html下面是20个非常有用的Java程序片段,希望能对你有用。1. 字符串有整型的相互转换123String a = String.valueOf(2); //integer to numeric stringint i = Integer.parseInt(a); //numeric string to an int2. 向文件末尾添加内容123456789101112BufferedWriter out = null;try {out = new BufferedWriter(new FileWriter(”file 阅读全文

posted @ 2014-01-15 13:33 高董 阅读(204) 评论(0) 推荐(0) 编辑

导航