Sorry friend,
as you said that we'll have to define main method then it's not true, a static method first called by any class, what I've explained above, I've compiled it and 've executed successfully once, but what's the problem now, why it doesn't run now, I don't know ? but when will figure it out will tell you,
however thanks for your reply !!!
------------------
Harjeet Singh Dadwal