1)Suppose a Scanner object is created as follows: Scanner input = new Scanner(System.in); What method do you use to read an int value? A) input.nextInteger(); B) input.integer(); C) input.nextInt(); D) input.int(); 2)The following code fragment reads…