谁帮我看看 这代码到底出了什么错
package mars.Ac1;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
package mars.Ac1;
import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Ac1 extends Activity {
/** Called when the activity is first created. */
private Button myButton=null;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
myButton=(Button)findViewById(R.id.myButton);
myButton.setOnClickListener( ew MyButtonListener()); }
class MyButtonListener implements OnClickListener{
public void onClick(View c) {
// TODO Auto-generated method stub
Intent intent=new Intent();
intent.setClass(Ac1.this, OtherAc.class);
Ac1.this.startActivity(intent);
}
}
}
红色部分老是现实错误