2016年1月11日

求某个字符在字符串中的第5个位置

摘要: String ss="2222222222";Matcher slashMatcher1 = Pattern.compile("2").matcher(ss); int mIdx1 = 0; while (slashMatcher1.find()) { ... 阅读全文

posted @ 2016-01-11 17:30 米虫爱喝咖啡 阅读(285) 评论(0) 推荐(0) 编辑

将字符串写进txt中方式

摘要: try { File file = new File(filePath); PrintStream ps = new PrintStream(new FileOutputStream(file)); ps.println("... 阅读全文

posted @ 2016-01-11 17:21 米虫爱喝咖啡 阅读(396) 评论(0) 推荐(0) 编辑

基本linux命令

摘要: 1. Basic Instructions基本操作命令 cd [dir] 进入文件夹 ll 列出当前文件夹下所有内容 pwd 显示当前路径 mkdir [dir] 新建文件夹 rm [file] 删除文件 rm -rf [dir] 删除文件夹 cp -rf [dirA] [dirB] 复制文件夹... 阅读全文

posted @ 2016-01-11 15:39 米虫爱喝咖啡 阅读(127) 评论(0) 推荐(0) 编辑

导航