Create a Scanner Object in Javart refeo: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);