日期:2014-05-20 浏览次数:20778 次
Scanner sc = new Scanner("123\n\n34\nafdf\n"); sc.useDelimiter("\\n\\n"); int i = 0; while (sc.hasNext()) { System.out.format("%02d:%s\n", ++i, sc.next()); }