Scanner class in java which is assume to input the data and read the data. Example 1 Input the name using Scanner public class Example { public static void main(String args[]) { Scanner inputvalue = new Scanner(System.in); System.out.println("Enter Your Name"); String name = inputvalue.nextLine(); System.out.println("Your Name is" + name); } } Example 2 Input Two Numbers and Calculate the display …