import java.util.Scanner;

 

public class HelloWord{

public static void main(String[] args){

Scanner s=new Scanner(System.in);

int a=s.nextInt();

//在通过nextInt()读取整数后,再接着读取字符串,读出来的是回车换行"\r\n"

//因为nextInt只会读取数字信息,不会读走数字之后的回车换行"\r\n"

//所以在读取整数之后,接着读取字符串需要连续执行两次nextLine()

String b=s.nextLine();  

String c=s.nextLine();

float d=s.nextFloat();

}

}

posted on 2017-12-10 22:28  一朝风月  阅读(84)  评论(0)    收藏  举报