int resultOfScanf  = new Scanner(System.in).nextInt();

解决方案 »

  1.   


    public class InputTest {
    public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    // String inputString = scanner.nextLine();
    int i = Integer.parseInt(scanner.nextLine());
    System.out.println(i);
    // InputStreamReader reader = new InputStreamReader(System.in);
    // BufferedReader buffReader = new BufferedReader(reader);
    // String readerLine;
    // try {
    // readerLine = buffReader.readLine();
    // System.out.println(readerLine);
    // } catch (IOException e) {
    // e.printStackTrace();
    // }

    }
    }//121(input)
    //121(console)
      

  2.   

    Scanner s = new Scanner(System.in);
    int i = s.nextInt();
      

  3.   


    import java.util.*;
    class temp
    {
    public static void main(String[] args){
    int resultOfScanf;
    Scanner sc=new Scanner(System.in);
    resultOfScanf=sc.nextInt();
    System.out.print(resultOfScanf);
    }
    }