Hello vaishali.

Welcome to the Java Programming Forums.

Can you please post the code that you have written.
It will be near impossible to diagnose your problem without it..

Thanks.