I'm new to Java and I'm learning app for Android and on my route, I ran into this error:
Method does not override method from its superclass
The word @Override is underlined in red, but I could not understand the error. Here is the code:
public class MainActivity extends Activity {
@Override
public void OnCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
}