this is my code to set a value to a TextView
enter code here
public void addHours(View view){
final TextView mTextView = (TextView) findViewById(R.id.newHours_Value);
String hourValue = R.id.enterHours.getText().toint();
mTextView.setText("hourValue");
}
but the R.id.enterHours.GetText() comes up with an error
Cannot invoke getText() on the primitive type int
what am i doing wrong please.