Skip to content

Instantly share code, notes, and snippets.

@udacityandroid
Last active February 6, 2023 13:44
Show Gist options
  • Save udacityandroid/03774486d065d2302e33 to your computer and use it in GitHub Desktop.
Save udacityandroid/03774486d065d2302e33 to your computer and use it in GitHub Desktop.
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.");
}
@pro-coder-fast
Copy link

Thank you for using the WhetherWeather App.

@pro-coder-fast
Copy link

It's unlikely to rain.

@mixspark
Copy link

all right

@Harriskobia
Copy link

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