All pastes #521405 Raw Edit

Someone

public java v1 · immutable
#521405 ·published 2007-05-30 05:31 UTC
rendered paste body
	public static void main(String args[]) throws IOException	{//	int wordCounter = 0;	String outString;//	int maxSize = getSize();	int maxSize = 10;            // array size	StringArray array, bubSort, insertSort, selectSort;                 // reference to array	array = new StringArray (maxSize);  // create the array		BufferedReader input = new BufferedReader(new FileReader("ScienceMagazineArticle.txt"));    while ((outString=getData(input))!=null)    {    	String[] tokens = outString.split("\\s+");    	for (int i=0; i<tokens.length ; i++)    	{    		if (tokens[i].length()!=0)    			array.insert(tokens[i]);    	}    }    //   close the input file...    input.close();    System.out.println("Original Array: "+ array.getStringArray());    	bubSort = new StringArray (array.getSize());	insertSort = new StringArray (array.getSize());	selectSort = new StringArray (array.getSize());