[Solved] what does “x = (something)” mean in java?


Creates objectref for Object TextView

TextView mainTextView;

findViewById is a method having parameter R.id.main_textview and the returned value is getting casted to TextView type and stored in mainTextView

mainTextView = (TextView) findViewById(R.id.main_textview);

solved what does “x = (something)” mean in java?