enum float problem calculating price of coffee
package Main; import java.util.ArrayList; import java.util.List; public class Main { List<Ingredients> ingredients = new ArrayList<>(); public enum Ingredients { SUGAR(0.25), // these are the problem MILK(1.25), // this CREAM(1.75); // and this one private final float cost; Ingredients(int cost) { this.cost = cost; } public float getCost() { return cost; } } public enum Sizes […]