Suppose there is a credit store in your city that allows you to go for up to three purchases on credit. but at the time of third purchase, you have to pay for the highest bill out of the three purchases. write a program using stack class in java to demonstrate the following activities:
1. create an empty stack named "bills".
2. push the bill amounts of three purchases into the stack.
3. pop the three bills out of the stack and put them in different variables.
4. display the highest bill for payment.
5. push the remaining two bills back into the stack.
6. display the stack before and after the payment.