import java.io.BufferedReader;
import java.io.FileReader;
import java.text.CollationKey;
import java.text.Collator;
import java.text.RuleBasedCollator;
import java.util.Locale;
import java.util.Vector;
class CollateApp {
public static void main(String args[]) {
if (args.length != 1) {
System.out.println("Usage: java CollateApp file");
System.exit(0);
}
Locale defaultLocale = Locale.getDefault();
RuleBasedCollator collator = (RuleBasedCollator) Collator.getInstance(defaultLocale);
Vector