Scanner 获取数据

1.next 字符串

2.nextLine 字符串

3.nextInt 整型

4.nextDouble 双精度类型

5.nextBoolean 布尔类型

6.next或者nextLine 

charAt() 方法:   String char=“abc”;     char.charAt(0)=a;

原文地址:https://www.cnblogs.com/214829qw/p/5159165.html