Skip to content

Instantly share code, notes, and snippets.

View nagaawy's full-sized avatar

Emad Aldeen Ahmed nagaawy

  • Cairo
View GitHub Profile
@udacityandroid
udacityandroid / Calculate price method
Created June 9, 2015 23:49
Add to MainActivity.java
/**
* Calculates the price of the order.
*
* @param quantity is the number of cups of coffee ordered
*/
private void calculatePrice(int quantity) {
int price = quantity * 5;
}