标签:style asn sys tin ring next print new imp
1、Scanner
import java.util.Scanner;
Scanner in = new Scanner(System.in);
String s = in.next();
int i = in.nextInt();
double d = in.nextDouble();
2、in.hasNextInt()
if (in.hasNextInt) {
System.out.println(in.nextInt);
}
标签:style asn sys tin ring next print new imp
原文地址:https://www.cnblogs.com/ss-123/p/8974114.html