Working on first example from first chapter but hitting build error



import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class QuizActivity extends AppCompatActivity {

private Button mTrueButton;
private Button mFalseButton;

protected void onCreate(Bundle savedInstanceState) {

    mTrueButton = (Button) findViewById(;
    mFalseButton = (Button) findViewById(;

    mTrueButton.setOnClickListener(new View.OnClickListener(){
        public void OnClick(View V) {

I see this error - not sure why
Error:(22, 66) error: <anonymous$1> is not abstract and does not override abstract method onClick(View) in OnClickListener


I solved it
it is NOT public void OnClick(View V) {
But public void onClick(View V) {

Notice the lower case o - “onClick”