Skip to content

Instantly share code, notes, and snippets.

@ahossam88
ahossam88 / Code snippet in WeatherActivity.java
Created June 22, 2018 23:10 — forked from udacityandroid/Code snippet in WeatherActivity.java
Android for Beginners : If/Else Weather Quiz
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.");
}