非常有用的java20个代码片段
因为欣赏所以转载。原文地址http://blog.csdn.net/gdhuyufei/article/details/51319417 字符串有整型的相互转换String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int String a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an intString a = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int1 2 BufferedWriter out = null; try { out = new BufferedWriter(new FileWriter(...
