System.out.print("Please input String to check:");//提示输入 Scanner sc=new Scanner(System.in);//也可以接受文件输入 String str=sc.next();//挨个读取完毕,存储在str中,类型可以是String或int或其他
posted on 2014-10-12 16:24 Neil_Ling 阅读(180) 评论(0) 编辑 收藏 举报