-
-
Save udacityandroid/5b1b7da3e1cba07cda69 to your computer and use it in GitHub Desktop.
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."); |
ZerocoolVishal
commented
Dec 9, 2016
•
In the tutorial when I checked the answer shows that isRaining is false but here it's true. ⭕
WeatherActivity, It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.
In the tutorial the answer shows that isRaining is false! :( Not right...
WeatherActivity, It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.
WeatherActivity,It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.
This code is different from code in answer video!
It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.
It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.
its C
Thanks
Sadly I have run into this in several of the classes and lessons I have finished. The answers do not match the correct answer. I have even seen where the answer video is incorrect. When stuck here just do your best and move on. Just the other day the answer video had the wrong variable name and code crashed. So just keep working through and most important have fun!
It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.
Please change this code like video
It's raining, better bring an umbrella
Thank you for using the WhetherWeather App.
If statement is set to true here, and the possible answer to the quiz is indicating that it was set to false
There is a problem in this quiz:
The "isRaining " value in the code is true but in the video is false???!!!
Also the order of message in the video is not the same in the code above
C
It's raining is true, hence the message "better bring an umbrella" is displayed alongside the "Thank you for using the WhetherWeather App." because that occurs outside the conditional statement
done