错在哪里
package javaapplication1;class cheak{
public boolean chea(String name,String mima ){
if( (name.equals("xiaoming"))&&(mima.equals("xiao"))){
return true;} else {
return false;}
}
}
class qu{
private String aa[];
public qu(String info[]){
aa=info;
}
public void as(){
cheak bb=new cheak();
String name=aa[1];
String mima=aa[2];
if (bb.chea(name, mima))
{
System.out.print("正确");
}else {
System.out.print("bu");
}
}}
public class Main {
public static void main(String[] args)
{ String []s=new String[2];
s[0]="xiaoming";s[1]="xiao";
qu cc=new qu(s);
cc.as();
}}
String name=aa[1];
String mima=aa[2];
显示这里错了