2014-03-07 1 views
0

Mat-lab 파트 쪽. 자바 코드에Matrix Array를 Java에 전달하는 방법 인수 arguments 정수 변수 오류 : 오류 : 클래스와 일치하는 서명이있는 'list_method'메서드가 없습니다.

array = [2,1,2,3,1,3,33,4]; % various matrix 1-by-8 dimension 
import edu.lipreading.*; 
training = MainMethod;//Java Class 
training.list_method(array); 

: 나는 Error:No method 'list_method' with matching signature found for class 내가 실수를 한 경우 알려 주시기 바랍니다 가지고

public void list_method(List<Integer> points){ 
    Sample sample = new Sample(); 
    sample.getMatrix().add(points); //here Expected Points variable result like [2,1,2,3,1,3,33,4] 
} 

?

답변

0

클래스가 다른 클래스 로더에 의해로드되었는지 확인하십시오. 클래스 로더의 작동 방식에 대한 훌륭한 설명은 다운로드 할 수있는 자습서로 제공됩니다. here

+0

답변을 주셔서 감사합니다. Java 메소드와 같은 정수 인수를 사용하려고 시도했습니다. public void list_method (int a) {} Mat-lab 파트 : import lipreading. *; training = 기본 방법; training.list_method (100); 그래서 정수 변수를 mat-lab에서 java 메서드 인수로 전달했습니다. 따라서 Matrix = [1,2,3,4,5,6,7,8] % 1-by-8 행렬을 Java 메서드로 전달하고 싶습니다. 목록 포인트 – user3391749