What do I need to add to the main{} method to run the program?

Caporegime
Joined
12 Mar 2004
Posts
29,962
Location
England
Ok atm I have a wip program show below. My question is, what do I need to put in the main method so that the program will create a the PumpConsole object and execute the program (from a .jar file)?


I know that I have to convert the doubles to strings before JOptionPane will display them properly.
 
Last edited:
not done java much more c#/c etc but try instantiating the class in main - eg
Code:
 	public static void main(String[] args)
	{
	  //test for valid command line option - presumably a double
          //assign to new instance of class
          PumpConsole myPC = new PumpConsole(double_from_commandline);
	}
 
Back
Top Bottom