初学Android游戏中的代码书给出了错误

1 android button

我是Android开发的新手,我正在阅读创建自定义按钮的代码,告诉你没有时间你点击按钮.代码如下:

package com.helloworld;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class HelloWorldActivity extends Activity implements View.OnClickListener {

    Button button;

    int touchCount;
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        button=new Button(this);
        button.setText("Click Me");
        button.setOnClickListener(this);
        setContentView(button);
    }
    public void onCLick(View v)
    {
        touchCount++;
    button.setText("touched me"+touchCount+"time(s)");
    }
}
Run Code Online (Sandbox Code Playgroud)

错误 :

The type HelloWorldActivity must implement the inherited abstract method      View.OnClickListener.onClick(View) - Breakpoint:HelloWorldActivity
Run Code Online (Sandbox Code Playgroud)

我查看了几个网站并尝试了一些但没有任何效果.请帮帮我.谢谢.

MBy*_*ByD 9

应该是onClick,而不是onCLick(小写l).