Skip to content

Commit

Permalink
13.4. 자바 문서 보는 법 - 인스턴스
Browse files Browse the repository at this point in the history
  • Loading branch information
egoing committed Oct 1, 2019
1 parent 455c4a2 commit 136c673
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Programming/InstanceApp.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
public class InstanceApp {

public static void main(String[] args) throws IOException{

PrintWriter p1 = new PrintWriter("result1.txt");
p1.write("Hello 1");
p1.close();

PrintWriter p2 = new PrintWriter("result2.txt");
p2.write("Hello 2");
p2.close();

// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
// PrintWriter.write("result1.txt", "Hello 1");
// PrintWriter.write("result2.txt", "Hello 2");
}

}

0 comments on commit 136c673

Please sign in to comment.