Create a Scanner Object in Java

Create a Scanner Object in Java
r‮t refe‬o:lautturi.com
// read input from the input stream
Scanner sc1 = new Scanner(InputStream input);

// read input from a string
Scanner sc2 = new Scanner(String str);

// read input from files
Scanner sc3 = new Scanner(File file);
Created Time:2017-09-21 19:09:20  Author:lautturi