Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Android for Beginners : If/Else Weather Sample Quiz
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

This comment has been minimized.

Copy link

ZerocoolVishal commented Dec 9, 2016

WeatherActivity It's raining, better bring an umbrella.

@habiballahafg

This comment has been minimized.

Copy link

habiballahafg commented May 22, 2017

In the tutorial when I checked the answer shows that isRaining is false but here it's true.

@Drast10

This comment has been minimized.

Copy link

Drast10 commented Dec 12, 2017

WeatherActivity, It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.

@yoginicoder

This comment has been minimized.

Copy link

yoginicoder commented Jan 9, 2018

In the tutorial the answer shows that isRaining is false! :( Not right...

@lkings40

This comment has been minimized.

Copy link

lkings40 commented Feb 4, 2018

WeatherActivity, It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.

@ojindia

This comment has been minimized.

Copy link

ojindia commented Feb 4, 2018

WeatherActivity,It's raining, better bring an umbrella.
WeatherActivity,Thank you for using the WhetherWeather App.

@ojindia

This comment has been minimized.

Copy link

ojindia commented Feb 4, 2018

This code is different from code in answer video!

@Nogaeman

This comment has been minimized.

Copy link

Nogaeman commented Feb 15, 2018

It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.

@abdahma01

This comment has been minimized.

Copy link

abdahma01 commented Feb 24, 2018

It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.

@MasterSami1985

This comment has been minimized.

Copy link

MasterSami1985 commented Mar 7, 2018

its C

@badrddinb

This comment has been minimized.

Copy link

badrddinb commented Mar 7, 2018

Thanks

@pinedalezephyr

This comment has been minimized.

Copy link

pinedalezephyr commented Mar 21, 2018

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!

@ahmedmofreh

This comment has been minimized.

Copy link

ahmedmofreh commented Mar 31, 2018

It's raining, better bring an umbrella.
Thank you for using the WhetherWeather App.

@avsingh999

This comment has been minimized.

Copy link

avsingh999 commented May 4, 2018

Please change this code like video

@Gaganindoriya

This comment has been minimized.

Copy link

Gaganindoriya commented May 5, 2018

It's raining, better bring an umbrella
Thank you for using the WhetherWeather App.

@Hephyang

This comment has been minimized.

Copy link

Hephyang commented Jun 11, 2018

If statement is set to true here, and the possible answer to the quiz is indicating that it was set to false

@orwa-te

This comment has been minimized.

Copy link

orwa-te commented Jun 26, 2018

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

@emanhamad

This comment has been minimized.

Copy link

emanhamad commented Sep 12, 2018

C

@ime01

This comment has been minimized.

Copy link

ime01 commented Nov 7, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.