Source of ConsoleApplication.java


  1: // ConsoleApplication.java
  2: // A "shell" for any console application
  3: 
  4: 
  5: public class ConsoleApplication
  6: {
  7:     // Put any required instance variables here ...
  8: 
  9:     // Do whatever needs to be done in the main function
 10:     public static void main(String[] args)
 11:     {
 12:         ConsoleApplication app = new ConsoleApplication();
 13:         app.doWhatNeedsToBeDone();
 14:     }
 15: 
 16: 
 17:     // Constructor
 18:     public ConsoleApplication()
 19:     {
 20:         // Method body
 21:     }
 22:     
 23: 
 24:     public void doWhatNeedsToBeDone(/* ... */)
 25:     {
 26:         // Method body ...
 27:     }
 28:     
 29:     
 30:     // Other methods as required ...
 31: }