Scanner的用法
首先引用 import库
import java.util.Scanner;
下面输入时
Scanner scanner =new Scanner(System.in);
String name = scanner.next();
charAt(i)
name.charAt(i)的意思是获取第i个字符所在name的位置
标签:java,scanner,name,Scanner,Day,charAt From: https://www.cnblogs.com/niuniuhong/p/16648281.html