All pastes #205957 Raw Edit

Someone

public java v1 · immutable
#205957 ·published 2006-10-17 04:04 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 [5];    String inputLine;    try {        	 BufferedReader is = new BufferedReader(new InputStreamReader(System.in));    	     	 Pattern p = Pattern.compile("\\s+");         while ((inputLine = is.readLine( )) != "end")          {        	 Matcher m = p.matcher(inputLine);        	 if(m.find())        	 {        		 continue;        	 }        	         	 words[counter]=inputLine;        	 counter++;         }         is.close( );  	} catch (IOException e) {		e.printStackTrace();	}    }}