Forked from udacityandroid/Code snippet in WeatherActivity.java
Created
March 12, 2017 17:02
-
-
Save mohammedragabmohammedborik/9fc63c5e6a82e43ece8cbf15bf976966 to your computer and use it in GitHub Desktop.
Android for Beginners : If/Else Weather Sample 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
| boolean isRaining = true; | |
| if (isRaining) { | |
| Log.v("WeatherActivity", "It's raining, better bring an umbrella."); | |
| } else { | |
| Log.v("WeatherActivity", "It's unlikely to rain."); | |
| } | |
| Log.v("WeatherActivity", "Thank you for using the WhetherWeather App."); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment