
My program is not find java.io.File; why? help me please..

Have you installed java properly?.Anyways, post your code.

I installed
And renew from the Internet..I don't know how to do...my code
import java.io.*;
class FileWrite
{
public static void main(String args[])
{
try
{
// Create file
FileWriter fstream = new FileWriter("out.txt");
BufferedWriter out = new BufferedWriter(fstream);
out.write("Hello Java");
//Close the output stream
out.close();
}
catch (Exception e){//Catch exception if any
System.err.println("Error: " + e.getMessage());
}
}
}
I have got this code your from site. Or this code it is not whole ? in this code FileWriter shows mistake

I installed
And renew from the Internet..I don't know how to do...my code
import java.io.*;
class FileWrite
{
public static void main(String args[])
{
try
{
// Create file
FileWriter fstream = new FileWriter("out.txt");
BufferedWriter out = new BufferedWriter(fstream);
out.write("Hello Java");
//Close the output stream
out.close();
}
catch (Exception e){//Catch exception if any
System.err.println("Error: " + e.getMessage());
}
}
}
I have got this code your from site. Or this code it is not whole ? in this code FileWriter shows mistake

Where can I free download Java Platform SE 6.0.220.4 U22
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.