Skip to content

Instantly share code, notes, and snippets.

@Mohanad0
Forked from udacityandroid/Option A
Created June 3, 2018 22:24
Show Gist options
  • Save Mohanad0/b1b58a192edde81e67613e827e70ad7d to your computer and use it in GitHub Desktop.
Save Mohanad0/b1b58a192edde81e67613e827e70ad7d to your computer and use it in GitHub Desktop.

Revisions

  1. udacityandroid revised this gist Jun 9, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Option A
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    *
    * @return the price
    */
    private int calculate price(int quantity) {
    private int calculate price(int quantity {
    int price = quantity * 5;
    return price;
    }
  2. udacityandroid revised this gist Jun 9, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Option A
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    *
    * @return the price
    */
    private int calculate price int quantity {
    private int calculate price(int quantity) {
    int price = quantity * 5;
    return price;
    }
  3. udacityandroid created this gist Jun 8, 2015.
    9 changes: 9 additions & 0 deletions Option A
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /**
    * Calculates the price of the order based on the current quantity.
    *
    * @return the price
    */
    private int calculate price int quantity {
    int price = quantity * 5;
    return price;
    }
    8 changes: 8 additions & 0 deletions Option B
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /**
    * Calculates the price of the order based on the current quantity.
    *
    * @return the price
    */
    private calculatePrice(int quantity)
    int price = quantity * 5;
    return price;
    9 changes: 9 additions & 0 deletions Option C
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /**
    * Calculates the price of the order based on the current quantity.
    *
    * @return the price
    */
    private int calculatePrice(int quantity) {
    int price = quantity * 5;
    return price;
    }