senthikumar, you have already been asked
once to change your display name to conform to the JavaRanch
Naming Policy. I must warn you that if you do not comply, your account will be closed.
You can change your name
here.
As for Kia's code, it has one fatal error:
available() doesn't do what you think it does. Have a look at
this example for a copy method that works.
To copy an entire directory, use the methods of
java.io.File to get a list of the directory contents and copy each file individually.