Not sure why, but my program has quite a few red underlines. Not really sure what I did wrong at this point. Should be easy to fix.
public class CoffeeMain {
public static void main(String[] args) {
CoffeeMain lS = new CoffeeMain("Latte", "Small", "Water, Milk, Sugar", 2);
CoffeeMain lB = new CoffeeMain("Latte", "Big", "Water, Milk, Sugar", 4);
CoffeeMain cS = new CoffeeMain("Cappucino", "Small", "Water, Milk, Sugar", 3);
CoffeeMain cB = new CoffeeMain("Cappucino", "Big", "Water, Milk, Sugar", 6);
CoffeeMain eS = new CoffeeMain("Espresso", "Small", "Water, Milk, Sugar", 4);
CoffeeMain eB = new CoffeeMain("Espresso", "Big", "Water, Milk, Sugar", 8);
lS.usersOrder();
}
}
public class CoffeeOther {
String type;
String size;
String ingredients;
int cost;
public CoffeeOther(String t, String s, String i, int c) {
this.type = t;
this.size = s;
this.ingredients = i;
this.cost = c;
}
void usersOrder() {
System.out.println("You ordered a " + this.size + " " + this.type + " that costs " + this.cost + " and is made of " + this.ingredients);
}
}