Following my introduction to Java through the AP Computer Science A course I examined the use of the Scanner class, which takes in user input and stores the data in a variety of ways. In this simple exercise I imported the scanner class, instantiated a new element of it by the name of “kb” and…