Last active
February 6, 2023 13:44
-
-
Save udacityandroid/03774486d065d2302e33 to your computer and use it in GitHub Desktop.
Android for Beginners : If/Else Weather Quiz
This file contains 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 = false; | |
Log.v("WeatherActivity", "Thank you for using the WhetherWeather App."); | |
if (isRaining) { | |
Log.v("WeatherActivity", "It's raining, better bring an umbrella."); | |
} else { | |
Log.v("WeatherActivity", "It's unlikely to rain."); | |
} |
thanks 👍
C
Question C Because isRaining is false, though, it will print the Else Statement to the logs, which is "It's unlikely to rain".
Question C Because isRaining is false, though, it will print the Else Statement to the logs, which is "It's unlikely to rain".
boolean isRainingInVancouver = true;
Wow we've come a really long way :)
let's do this course together mail me at [email protected]
It's unlikely to rain. because the isRaining boolean is false
Thank you for using the WhetherWeather App.
It's unlikely to rain.
all right
V/WeatherActivity : Thankyou for using the WhetherWeather App.
V/WeatherActivity : It's unlikely to rain.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thats interesting