这怎么回事???
class www
{
//定义域,一个二围的字符数组
static String[][] dictionary={
{"三人行必有我师","爱","中国","数字","圣诞快乐","你好","狗","猫","三","我","网页","网站","傻子","不行","头","肯德基","程序","数学","计算机","花"},
{"three men must have my teacher","love","china","number","Merry Christmas","Hello","Dog","Cat","three","I","web","web site","foolishman","No way","head","KFC","programe","Mathematics","computer","flower"}
};
/************定义英译汉方法**********/
public static String engtoCh(String s)
{
//逐个比较dictionary[1][i]中的字符串
//然后找到则返回结果,否则返回空字符串
for(int i=0;i<20;i++)
{
if(dictionary[1][i]==s)
{return dictionary[0][i];}
else
{return null;}
}
}
public static void main(String args[])
{
System.out.println(engtoCh("love"));
}
}
//**********************************************************
//这个类为什么为什么有:missing return statment错误啊???????
//**************