Im new to java. I Created this code to get a better grasp and idea how files works. The code executes but the file never appears on my desktop, can someone tell me why and how i can correct this issue.
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class CreateFile1{
public static void main(String[] args) throws IOException{
File f = new File("C:/Users/Solris/Desktop");
BufferedWriter output = new BufferedWriter(new FileWriter(f));
output.write("Testing");
output.close();
}
}