-4

Hey guys I can't understand why I am getting this error of cant find symbol getText. These are my classes

This is the error message.

Dhruv
  • 3
  • 2
  • 1
    You probably want to call the function. – SLaks Aug 11 '16 at 15:50
  • 1
    bcz, if you are attempting to call a function you need to show what (if any) parameters you are passing using parenthesises... try this instead `a.getText()` – Rabbit Guy Aug 11 '16 at 15:56

1 Answers1

0

I think you have forgotten the () in the end of method called.

Try testField.getText() or testField.getText().toString().

Nikolas Charalambidis
  • 40,893
  • 16
  • 117
  • 183