Java, method not applicable for arguments

change method declaration to

private static void mysecondclass(String string, String string2, String string3){
System.out.println(string+" "+string2+" "+string3);
}

a circular bracket is missing in your code and also remove the semicolon after that.

Leave a Comment