scanner class in java examples and gur Example: how to create a Scanner Object in java Scanner console = new Scanner(System.in);