如何在main方法中调用这个方法?我无法在主方法中调用我的用户定义方法。怎么做?
public class Concat {
public static void main(String[] args) {
}
public static String UserInfo (String name, String email, String address) {
name="vgfhk";
email="dbdkjb";
address="jbkug";
String code="Thanks for running the code\n\n";
String below="Your information is given below:\n";
String thanksMsg = "Hello, "+name+code+below;
String userInformation="Name: "+name+"email: "+email+"Address: "+address;
return thanksMsg.concat(userInformation);
}
}