Coin Sorting Machine—————————
***We can only have two classes and we have to use public staticvoid print(CoinStack[] cs) in order to print output.
Write a java class called CoinStack.java, which implementsCoinStackInterface
Write your application named CoinStackApp.java that read coins(three data files are provided for testing purpose): Construct 4stacks (for penny, nickel, dime, and quarter stack), read coinsfrom the data file then push to their corresponding stacks. Forexample, if the value is 10, then you need to push that coin todime stack.
The print the four coin stacks as shown below. Hint: You mayimplement and use the method as spcified below:
public static void print(CoinStack[] cs)
Here
PayPal Gateway not configured
PayPal Gateway not configured