smgr

Untitled

Nov 13th, 2012
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.64 KB | None | 0 0
  1. import java.io.*;
  2. import java.util.*;
  3.  
  4. public class sajatForraskodKozNelkul {
  5.     public static void main (String [] args){
  6.    
  7.         try {
  8.             BufferedReader file = new BufferedReader(new FileReader("sajatForraskodKozNelkul.java"));
  9.             for(String line=file.readLine(); line!=null; line=file.readLine()){
  10.                 StringTokenizer sor = new StringTokenizer(line, " ");
  11.                 while(sor.hasMoreTokens()){
  12.                     StringTokenizer ujSor = new StringTokenizer(sor.nextToken(), "  ");
  13.                     while(ujSor.hasMoreTokens()){
  14.                         System.out.print(ujSor.nextToken());
  15.                     }
  16.                 }
  17.                 System.out.println();
  18.             }
  19.             file.close();
  20.         } catch(IOException e){}
  21.    
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment