Can anybody explain to me what that line of code does? I've seen it before in the main method but I don't understand, why is it different to when we just create an instance of a class?
I'm used to seeing things like:
public static void main(String[] args) {
Class object = new Class();
object.method();
}
One more question, if instead of placing "className.main(new String[]{"filename.txt"});" in the main method I want to use actionlistener to call that class when a button is clicked, what do I have to put in the actionlistener body? I hope my question is not too confusing.