我是java新手,我只是想从另一个类中使用这个方法'epli'但是当我尝试这样做时它说The method epli(String[]) in the type nammi is not applicable for the arguments ()
我在这里使用eclipse是所有代码:
import java.util.Scanner;
public class nammi{
public void epli(String args[]){
System.out.println("Mér finnst nammi gott");
}
}
public class siggi {
public static void main(String args[]){
System.out.println("Eg heiti ekki siggi");
nammi nammi = new nammi();
nammi.epli();
}
}