Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/388.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/svn/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Soundex出错:找不到符号_Java_Soundex - Fatal编程技术网

Java Soundex出错:找不到符号

Java Soundex出错:找不到符号,java,soundex,Java,Soundex,获取以下错误: 错误:找不到符号so=Soundex.parse(S,true) 我可以看出你在调用两种方法 so = Soundex.parse(s); so = Soundex.parse(s, true); 但根据方法定义,只有 static String parse(String s, boolean uppercase) 方法签名存在。请检查是否存在带有一个参数的第一个方法。编译器似乎在抱怨Soundex.parse(s,true);但我不能肯定这是一个编译信息或你对它的解释。

获取以下错误:

错误:找不到符号so=Soundex.parse(S,true)


我可以看出你在调用两种方法

 so = Soundex.parse(s);
so = Soundex.parse(s, true);
但根据方法定义,只有

static String parse(String s, boolean uppercase) 

方法签名存在。请检查是否存在带有一个参数的第一个方法。

编译器似乎在抱怨Soundex.parse(s,true);但我不能肯定这是一个编译信息或你对它的解释。但是我注意到下面几行,您只使用一个参数调用parse()。是的,有一个方法接受一个参数。静态字符串分析(字符串s){返回新字符串(新的Soundex(s).code);}
 so = Soundex.parse(s);
so = Soundex.parse(s, true);
static String parse(String s, boolean uppercase)