/**
 * @author: FamiHug
 */
import java.io.*:

public class WriteToFile 
{
	public static void main(String[] args)
	{
		try{
			BufferedWriter out = new BufferedWriter(new File("out.txt"));
			out.write("FAMILUG");
			//close output stream
			out.close();
		} catch(IOException e)
		{
			e.printStackTrace();
		}
	}
}

@@ -37,17 +37,17 @@
 ava.io.*
-:
+;
 %0A%0Apublic
@@ -118,16 +118,55 @@
 %0A%09%09try%7B%0A
+%09%09%09//create file ad BufferedWriter obj%0A
 %09%09%09Buffe
@@ -208,16 +208,22 @@
 new File
+Writer
 (%22out.tx
@@ -253,16 +253,223 @@
 ILUG%22);%0A
+%09%09%09out.newLine();//write %5Cn%0A%09%09%09out.write(%2220110927%22);%0A%09%09%09out.newLine();//write %5Cn%0A%0A%09%09%09//Test with write a array of int%0A%09%09%09int%5B%5D arr = %7B1, 2, 3, 4, 5, 4, 3, 2, 1%7D;%0A%09%09%09for(int i : arr)%0A%09%09%09%09out.write(i + %22 %22);%0A
 %09%09%09//clo

use BufferedWriter, newLine(), add test with arr