import java.util.*;import java.io.*;
public class Main {
public static void main(String[] args) {//generate random prices for itemsRandom rand = new Random();int max = 100;int min = 1;int randomNum = rand.nextInt((max - min) + 1) + min;
//allow user to select an itemSystem.out.println("Please select an item: ");String item = input.nextLine();
//allow user to set price for itemSystem.out.println("Please set a price for your item: ");int price = input.nextInt();
//if statement to check if prices have droppedif (price > randomNum) {System.out.println("Your selected item has dropped in price, hurryup before prices rise again!");}
//loop to check if prices are about to changewhile (price == randomNum) {System.out.println("Prices are about to change");}
//change pricesSystem.
WHAT TODO:
a Java program (implementing web app with mobilenotifications)
an app where it posts items for sale at a randomly generatedprices (with the request of the user to change the prices or not)and being able to select an item for watch out until the prices ofthat items drops and notifies the user with a notification
and notifies the user when the items are about to changeand do change for something else.
Please write with detailed comments explaining the loops and IFsand other necessarily things.
Provide full code and screenshot of final results.