标签:
import java.util.Scanner;
public class Experiment_1
{
public static void main(String[] args) {
long ID , Grade;
int n = 3;
for(int a= 1;a<=n;a++)
{
System.out.println("Please input the student ID:");
Scanner s1 = new Scanner(System.in);
ID = s1.nextLong();
System.out.println("Please input the student name:");
Scanner s2 = new Scanner(System.in);
String Name = s2.next();
System.out.println("Please input the Grade:");
Scanner s3 = new Scanner(System.in);
Grade = s3.nextLong();
System.out.println("student ID:"+ID);
System.out.println("student name:"+Name);
System.out.println("Grade"+Grade);
}
}
}
标签:
原文地址:http://www.cnblogs.com/KG35/p/4433200.html