我有一些麻煩讓java識別我的PrintWriter對象'出'。我不確定問題是什麼。Java:PrintWriter對象未檢測到
public void storeInput(String fileName)
{
String folderName = "C:/temper/testy/";
File filetest = new File(folderName, fileName);
System.out.println("ENTER TEXT!!!!!");
String input = sc.nextLine();
try {
PrintWriter out = new PrintWriter(
new BufferedWriter(
new FileWriter(filetest)));
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
out.println(filetest);
out.close();
}