when i implements textwatcher, a error occur
Syntax error on token "implements", extends expected
my code is
import android.text.TextWatcher;
public interface Testing implements TextWatcher{
}
why i need to use extends?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’re not implementing
TextWatcher– you’re creating a new interface which extends it.So you would write:
or
You haven’t said what you’re really trying to do, so we can’t tell whether you should actually be declaring a class, or just declaring a new interface which extends
TextWatcher.See section 9.1.3 of the JLS for more details of declaring one interface to extend another.