简体   繁体   English

如何将矩阵数组传递给Java方法参数列表整数变量error:error:没有为类找到具有匹配签名的方法“ list_method”?

[英]How to Pass Matrix Array to Java Method arguments List Integer variable error:error:No method 'list_method' with matching signature found for class?

On Mat-lab Part Side. 在Mat-lab零件侧。

 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);

On java Code : 在Java代码上:

 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]
 }

I have got Error:No method 'list_method' with matching signature found for class please let me know where I have made a mistake ? 我得到了Error:No method 'list_method' with matching signature found for class请让我知道我在哪里出错了?

Check if the class is loaded by a different class loader. 检查该类是否由其他类加载器加载。 An excellent explanation of how classloaders work is given the the tutorial which can be downloaded here 本教程提供了有关类加载器工作原理的出色解释,可在此处下载

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 错误 java 方法组合Sum(int[], int, List<integer> ) 类型中的解决方案不适用于 arguments (int[], int, boolean)</integer> - error java The method combinationSum(int[], int, List<Integer>) in the type Solution is not applicable for the arguments (int[], int, boolean) 如何将Integer包装类传递给java中的方法? - How to pass Integer wrapper class to a method in java? 如何将新数组作为参数传递给Java中的方法? - How to pass a new array as arguments to a method in Java? Java:如何将参数传递给构造函数? 未定义的方法错误? - Java: how to pass arguments into constructor? Undefined method error? 在Java中将列表或单个列表项作为方法参数传递是否更有效? - Is it more efficient to pass a List or individual List Items as method arguments in Java? "我可以将数组作为参数传递给 Java 中具有可变参数的方法吗?" - Can I pass an array as arguments to a method with variable arguments in Java? Java数组方法.Class错误 - Java Array Method .Class error 带有变量参数列表的抽象方法 - Abstract method with variable list of arguments 如何在Java中将泛型列表类作为参数传递给泛型方法? - How to pass generic list class as an argument to generic method in Java? 在Java中对列表进行排序时出现错误“找不到合适的方法” - Error “no suitable method found” when sorting List in Java
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM