Advertisement
Josif_tepe

Untitled

Mar 25th, 2021
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. import java.io.*;
  2. public class Main {
  3.  
  4.     public static void main(String[] args) {
  5.         // ispecati gi site soglaski
  6.         try {
  7.             FileOutputStream fout = new FileOutputStream("out.txt");
  8.             CustomFilter customout = new CustomFilter(fout);
  9.             for(int i = System.in.read(); i != 'X'; i = System.in.read()) {
  10.                 customout.write(i);
  11.             }
  12.         }
  13.         catch (IOException ex) {
  14.             System.out.println(ex);
  15.         }
  16.     }
  17. }
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement