We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca35f3e commit 95f8f7eCopy full SHA for 95f8f7e
input_output#7.java
@@ -1,15 +1,19 @@
1
import java.io.*;
2
-public class writer_example {
3
- public static void main(String[] args) {
4
- try{
+public class writer_example
+{
+ public static void main(String[] args)
5
+ {
6
+ try
7
8
Writer w=new FileWriter("C:\\Users\\ABHISHEK\\Documents\\NetBeansProjects\\practice\\target\\classes\\practice_java\\test.txt");
9
String content="javajavajava";
10
w.write(content);
11
w.close();
12
System.out.println("done");
13
14
}
- catch(Exception e){
15
+ catch(Exception e)
16
17
System.out.println(e);
18
19
0 commit comments