How to write a file to a directory

Guys I had created a xls file in java using the Java Excel API in my java code,
I don't know how to write the file to a directory location in my computer, so that I can open the file and see the actual content of the xls file that I have created using the follwing code