Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
Created June 10, 2015 03:50

Revisions

  1. udacityandroid created this gist Jun 10, 2015.
    9 changes: 9 additions & 0 deletions Method 1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /**
    * Get the email account name.
    *
    * @return the name of the account.
    */
    private String getAccountName() {
    return "[email protected]";
    return "[email protected]";
    }
    8 changes: 8 additions & 0 deletions Method 2
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /**
    * Add $4 of tip onto the current bill.
    *
    * @return the total price of the bill (including tip).
    */
    private addTip(int bill) {
    return bill + 4;
    }
    6 changes: 6 additions & 0 deletions Method 3
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    /**
    * Sets up the app for the current city.
    */
    private nothing setup() {
    cityName = "London";
    }
    8 changes: 8 additions & 0 deletions Method 4
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    /**
    * Get the number of students in a class.
    *
    * @return the number of students.
    */
    private int getStudentClassSize() {
    return "20";
    }