-1
클래스 A와 B 만 제대로 작동했지만 클래스 C를 추가하면 더 이상 "Hello"값을 반환하지 않습니다.문자열 값이 반환되지 않습니다.
클래스 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