摘要:
String str= "Forevercai;http://4evercai.com;2"; String [] strS = str.split(";"); for (int i = 0; i < strS.length; i++) { System.out.println(strS[i]); } 阅读全文
posted @ 2013-12-19 09:59
NúllPòinterExcêptīon
阅读(455)
评论(0)
推荐(0)
摘要:
1 public static String getFileCharacterEnding(File file) throws Exception { 2 InputStream inputStream = new FileInputStream(file); 3 byte[] head = new byte[3]; 4 inputStream.read(head); 5 String code = "gbk"; 6 if (head[0] == -1 && head[1] == -2){ 7 ... 阅读全文
posted @ 2013-12-19 09:55
NúllPòinterExcêptīon
阅读(1646)
评论(0)
推荐(0)

浙公网安备 33010602011771号