Design Coffee Machine Java. There would be n ( n is an integer. Versioning of the coffeemachine.java by stages.

Coffee pack contains the recipe of the coffee, like how many milk / how many sugar to be added in the coffee. The b rew () method is going to be called out by the client to brew coffee of desired type. In the body of the method, write a switch statement that enumerates the enum fields and creates an instance of the class that corresponds to the passed enum value:





