摘要: String value = "this is a book!\n\nHello,world."; String[] paras = value.split("\n\n|,| |!|\\."); for(int i=0;i<paras.length;i++) System.out.println(paras[i]);有人可能會想到java.util.StringTokenizer,基本上API中明確的表示它已經是遺產類別(Legacy class)了,存在的原因是為了舊程式的相容性,不建議在您撰寫新程式時使用,使用split()來代替會是個好的方案 阅读全文
posted @ 2012-11-05 22:42 jeremyatchina 阅读(191) 评论(0) 推荐(0) 编辑
摘要: Host os :winodwsGuest os :Linux 有些版本是掛載不起來的。以下設定適用於各版本的Linux Distribution,兩個共用資料夾名稱要一致。sh ./VBoxLinuxAdditions.runmkdir /mnt/Share (in Guest os) sudo mount.vboxsfShare/mnt/Share紅色「Share」為 VirtualBox 共用資料夾名稱 (in Host os)藍色「/mnt/Share」為自己建立要掛載的目錄To mount this every time linux boots, edit the file... 阅读全文
posted @ 2012-11-05 22:17 jeremyatchina 阅读(431) 评论(1) 推荐(0) 编辑