Imran
A couple of things:
When you have a question or problem with code
you should be more specific about exactly what the problem is, we have a lot of visitors here who like to help out but, as far as I know, none of them are mind readers.
Also, we have quite a few forums here at the ranch, if you post your queries to the forum that best matches your query then you'll probably get better responses. On the main forum page each forum has a brief description under the forum title. This forum, for example, is for questions and comments about the
java ranch site itself.
Thirdly, the thing that jumps out first in your code is your declaration main is incorrect. The argument to main should be (
String args[]), if the error you're geting is something along the lines of 'class not found' then that is most likely your cause.
hope that helps
------------------
Dave
Sun Certified Programmer for the Java� 2 Platform