-1
它只与A类和B类工作正常,但是当我添加类C时,它不会返回值“你好”了。字符串值不会返回
A类:
public void firstName() {
Deco dec = new Deco();
x=dec.first;
System.out.println("value: "+x);
B类(装饰类):
public String firstOne(byte[] b) throws Exception {
if(xxx.equals(y)){
String first="Hello";
return(first);
}else{
System.out.println("Error");
}
C类:
public String test(String path, String name) {
decode = decode_text(get_byte_data(image));
Deco dec = new Deco();
dec.firstOne(decode);
}
什么编程语言? – NoChance
什么是'xxx'?还有什么想念你应该包括? – hatchet
看起来像'C#' - 请确认并标记问题。 – mklement0