i am wondering if it is possible to define parameters for a command line program directly in the main function as parameters, like this:
public class HelloWorld {
public static void main(double a1, double a2) {
//do something with a1, a2...
}
}
instead of:
public class HelloWorld {
public static void main(String[] args) {
//do something with args[0], args[1]
}
}