Scanner scan =new Scanner(System.in); Scanner scan =new Scanner(System.in); String s =scan.nextLine(” “); //输入一个字符串 Scanner scan =new Scanner(System.in); String s =scan.nextDouble(” “);//输入一个浮点型数 Scanner scan =new Scanner(System.in); String s =scan.nextInt(” “);//输入一个整形数
新闻热点
疑难解答