任奇 发表于 2012-5-9 13:48 用Scanner类就可以了、 Scanner can = new Scanner(new BufferedInputStream(System.in)); String str = ci ...