I have
class foo{
public static void main(String[] args){
do();
}
public void do(){}
}
but then when I call do() from main by running the command java foo on the command line, java complains that you can't call a method from a static function.
So my question is: How do you call methods from the main method and if it is not possible what are some alternative strategies to call methods after the program is run from the command line using the java command.