All pastes #205961 Raw Edit

Untitled

public java v1 · immutable
#205961 ·published 2006-10-17 04:10 UTC
rendered paste body
import java.io.BufferedReader;import java.io.FileReader;import java.io.IOException;import java.io.InputStreamReader;import java.util.regex.*;public class Descramble {	public static void main(String[] args){	int counter = 0;	String[] words = new String [10];    String inputLine;    try {        	 BufferedReader is = new BufferedReader(new InputStreamReader(System.in));    	     	 Pattern p = Pattern.compile("\\s+");         while ((inputLine = is.readLine( )) != null)          {//        	 Matcher m = p.matcher(inputLine);//        	 if(m.find())//        	 {//        		 continue;//        	 }//        	         	 words[counter]=inputLine;        	 counter++;         }         is.close( );  	} catch (IOException e) {		e.printStackTrace();	}    for(int i=0; i<words.length; i++){	System.out.println(words[i]);}}}