Scanner s = new Scanner (System.in) scanner.close();
netx()
不能输入带有空格的字符串
nextLine()
可以输入带有空格的字符串
hasNext或者hasNextLine 判断是否还有数据输入
欢迎分享,转载请注明来源:内存溢出
Scanner s = new Scanner (System.in) scanner.close();
netx()
不能输入带有空格的字符串
nextLine()
可以输入带有空格的字符串
hasNext或者hasNextLine 判断是否还有数据输入
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)