Java Console Read inputInt()

Here you can find the source of inputInt()

Description

input Int

License

BEER-WARE LICENSE

Declaration

protected final static int inputInt() 

Method Source Code

//package com.java2s;
//License from project: BEER-WARE LICENSE 

import java.util.Scanner;

public class Main {
    protected final static int inputInt() {
        Scanner sc = new Scanner(System.in);
        return sc.nextInt();
    }/*w  ww  .  jav a  2  s . c o  m*/
}

Related

  1. getInScanner()
  2. getUserInput()
  3. getUserInput()
  4. getUserInput(String text, int indentLevel)
  5. getUserInput(String whatever)
  6. inputString()
  7. readLine(Console console)