import java.util.Scanner;public class JustTest { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int max = sc.nextInt(); System.out.println(max); } }
Scanner scanner=new Scanner(System.in); int max=0; max=scanner.NextInt();
BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
int max=buf.read();
nextInt
nextFloat
nextShort
nextLong
...
import java.util.Scanner;public class JustTest
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int max = sc.nextInt();
System.out.println(max);
}
}
int max=0;
max=scanner.NextInt();