Welcome to the Treehouse Community
Looking to learn something new?
not sure what to do on stage 3 challenge task 1
Not sure what to do here: Challenge task 1 of 1 Initialize the showFactButton variable using the findViewById() method like the TextView above it. The ID for the button is showFactButton, and don't forget to cast it to a Button with (Button)!
i go to where it says Button showfactbutton; and i put Button showfactbutton = (button) findviewbyid(r.id.showfactbutton);
Stone Preston42,016 Points
java is case sensitive (as are most languages). you did not capitalize what needed to be captialized.
Button showfactbutton = (button) findviewbyid(r.id.showfactbutton);
Button showFactButton = (Button) findViewById(R.id.showFactButton);
notice that you need to use camel case. whenever you have multiple words in a variable or method name, you start with a lowercase letter, then each word after that begins with an uppercase letter.
I am struggling to complete this question. The error message tells me I have a compiler error. I have made sure that everything is written in camel case; however, I can't figure out where I made a wrong turn! Help would be appreciated. Thanks!
me too it now confusing