I need to show the output on the screen from my if statement. Please be as specific as possible. I need something to put instead of
system.out.println("This") - I know this shows it on the log. I want to show on the screen.
system.out.println("This") - I know this shows it on the log. I want to show on the screen.
Code:
try
{ PleaseEnter=(EditText)findViewById(R.id.PleaseEnter);
{
}
if ("1".equals(PleaseEnter.getText().toString().trim())) {
// tv.setText("This is the display 1.");
system.out.println("This is 1") ;
}
else if (PleaseEnter.equals("2"))
return;
//tv.setText("Dispaly 2");