Write a Java application that prompts the user for pairs ofinputs of a product number (1-5) and then an integer quantity ofunits sold (this is two separate prompts for input values). Youmust use a switch statement and a sentinel-controlled loop (i.e. aloop that stops execution when an out of range value such as -1is input). All 15 items below are for a single purchase. There arefive sets of inputs as follows: