A Developer Gateway To IT World...

Techie Uncle Software Testing Core Java Java Spring C Programming Operating System HTML 5 Java 8 ES6 Project

Use of Scanner in Simple Program

import java.util.Scanner.*;
class Student
{
    public static void  main(String args[])
    {
        Scanner sc = new Scanner(System.in);
        int rollno = sc.getInt();
        System.out.println("Heera Babu's Rollno = "+rollno);
    }

}

LEARN TUTORIALS

.

.