This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
you can set the path of file
PrintWriter out = new PrintWriter(c:/deore/Hotel1.txt); //this will create Hotel.txt file under deore directory.(but deore folder must be exist under c directory)
Joined: Apr 21, 2010
Hey......I'm using ubuntu and in that i tried to do so when i do this the compiler gives me an error of illegal start of expression...... what should i do.....and i dont think its the problem of my os.......it will give me this error everywhere.........