1. Write a Java application that inputs three integers from theuser and displays the sum average product smallest and largestof the numbers. Use a Scanner object to get the input from theuser. Use System.out to output the results. The average should be afloating point result and should be displayed with two digitsafter the decimal point.2. Student will modify the Java application from program 1. The newversion of the program will use JOptionPanes for input and output.Use String.format(%.2f doubleVariable) to create a stringrepresentation with two digits following the decimal point.I am using eclipse software browser is IE8 and I think compiler isJAVA based through eclipse