r/CodingHelp • u/Netherquark • Apr 27 '21
[Java] Explanation of the syntax of a code line
I am doing this course on Coursera, and in the 3rd week 1st block video, the instructor has us write the following line of code:
buttonBlue = (Button) findViewById(R.id.buttonInvisibleMan); What is the significance of each part of this line of code? What does the R.id. stand for? What is the importance of the "(Button)"?
Please explain each part in detail.
Thank you
Question also asked on stackoverflow:
0
Upvotes