public void submitOrder(View view){ int price = quantity * 5; String priceMessage = "Total: $" + price; priceMessage = priceMessage + "\nThank you!"; displayMessage(priceMessage); calculatePrice(quantity, 10); } private void calculatePrice(int quantity, int pricePerCup){ int price = quantity * pricePerCup; }
java keywords
abstract continue for new switch
assert*** default goto* package synchronized
boolean do if private this
break double implements protected throw
byte else import public throws
case enum**** instanceof return transient
catch extends int short try
char final interface static void
class finally long strictfp** volatile
const* float native super while
common android views
https://s3-us-west-1.amazonaws.com/udacity-content/PDFs/Common+Android+Views+Cheat+Sheet+(1).pdf