Arcee Palabrica8,100 Points
Clarification on startButton
Just wanna clarify this one...
startButton /*1st*/ = (Button) findViewById(R.id.startButton/*2nd*/);
the 1st startButton is the reference to Button and the 2nd one is the id right? coz in the previous course we made use of the 'm' convention this time there's none.
Steve HunterTreehouse Moderator 57,657 Points
The first one is how the Java code refers to your GUI element, the second is what the XML references the element with. So, you hook up one to the other, allowing your code to use that element of the GUI.
In short, yes, your understanding is correct.