Forked from udacityandroid/Code snippet in SmoothieActivity.java
Created
June 7, 2018 15:45
-
-
Save Mohanad0/6f1c97b889c95b0408e400c11e298373 to your computer and use it in GitHub Desktop.
Revisions
-
udacityandroid renamed this gist
Jun 22, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
udacityandroid revised this gist
Jun 22, 2015 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,3 @@ int numberOfSmoothiesTillPrize = 10; if (numberOfSmoothiesTillPrize > 9) { Log.v("SmoothieActivity", "Congratulations, you get a free smoothie!"); -
udacityandroid revised this gist
Jun 16, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,6 +5,6 @@ Log.v("SmoothieActivity", "Congratulations, you get a free smoothie!"); numberOfSmoothiesTillPrize = numberOfSmoothiesTillPrize - 10; } else { Log.v("SmoothieActivity", "No free smoothie this time."); } Log.v("SmoothieActivity", "You currently have " + numberOfSmoothiesTillPrize + " out of 10 smoothies needed for your next free smoothie."); -
udacityandroid created this gist
Jun 16, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,10 @@ // Smoothies Example - Quiz C int numberOfSmoothiesTillPrize = 10; if (numberOfSmoothiesTillPrize > 9) { Log.v("SmoothieActivity", "Congratulations, you get a free smoothie!"); numberOfSmoothiesTillPrize = numberOfSmoothiesTillPrize - 10; } else { Log.v("SmoothieActivity", "No free smoothie this time"); } Log.v("SmoothieActivity", "You currently have " + numberOfSmoothiesTillPrize + " out of 10 smoothies needed for your next free smoothie.");