Java常用代碼彙總

1. 字符串有整型的相互轉換 Stringa = String.valueOf(2); //integer to numeric string int i = Integer.parseInt(a); //numeric string to an int 2. 向文件末尾添加內容 BufferedWriter out= null; try{ out= newBufferedWriter(newFi
相關文章
相關標籤/搜索