Sure. Main is just a public static method like any other. In general, though, it's not usually a particularly good idea. A much better approach is usually to write a method which takes appropriate parameters and does what you want. Then you can call that from main, and from wherever else you want:
Post by:autobot
rubbery bacon. crispy tiny ad:
a bit of art, as a gift, that will fit in a stocking