Forked from udacityandroid/Code snippet in InboxActivity.java
Created
June 7, 2018 15:32
-
-
Save Mohanad0/f0fa6ce7f9077ad1a9668bdea9a5d10a to your computer and use it in GitHub Desktop.
Android for Beginners : If/Else Email Quiz
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 characters
| int numberOfEmailsInInbox = 0; | |
| String emailMessage = "You have " + numberOfEmailsInInbox + " emails"; | |
| if (numberOfEmailsInInbox == 0) { | |
| emailMessage = "You have no new messages"; | |
| } | |
| Log.v("InboxActivity", emailMessage); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment