System.out.println("***** " + title + " *****"); for (int i=0; i<v.size(); i++) System.out.println("v["+i+"]="+v.elementAt(i));
v = new Vector(); for (int i=0; i<rawStrings.length; i++) v.addElement(rawStrings[i]);
Simple main program to test the sorting System.out.println("StrSort Demo in Java"); StrSort s = new StrSort(); s.load(); s.dump("Before"); Collections.sort(s.v); s.dump("After");
System.out.println("StrSort Demo in Java"); StrSort s = new StrSort(); s.load(); s.dump("Before"); Collections.sort(s.v); s.dump("After");