Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Main {
- public static void main(String[] args) {
- // ispecati gi site soglaski
- try {
- FileOutputStream fout = new FileOutputStream("out.txt");
- CustomFilter customout = new CustomFilter(fout);
- for(int i = System.in.read(); i != 'X'; i = System.in.read()) {
- customout.write(i);
- }
- }
- catch (IOException ex) {
- System.out.println(ex);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement