public static void main(String[] args) throws IOException {
String s = "Billing modes except annual will include a $2.00 billing fee. To save the fee, select EFT as a safe and secure payment option.";
Client[] clients = new Client[25];
ArrayList list = new ArrayList();
FileInputStream fstream = new FileInputStream("C:\\Client1.txt");
DataInputStream in = new DataInputStream(fstream);
BufferedReader br = new BufferedReader(new InputStreamReader(in));
String strLine;
int count =0;
while ((strLine = br.readLine()) != null && count <25) {
//System.out.println (strLine);
Client client = new Client();
StringTokenizer tokenizer = new StringTokenizer(strLine);
client.setClientKey(tokenizer.nextToken());
client.setClientNumber(tokenizer.nextToken());
client.setClientName(tokenizer.nextToken());
client.setDivision(tokenizer.nextToken());
client.setCsPhone(tokenizer.nextToken());
client.setGroupPolNumber(tokenizer.nextToken());
client.setAbbreviation(tokenizer.nextToken());
client.setPay1AutoPay(tokenizer.nextToken());
client.setPay2CreditCard(tokenizer.nextToken());
client.setPay3BillMeLater(tokenizer.nextToken());
client.setPlanType(tokenizer.nextToken());
client.setStandardName(tokenizer.nextToken());
client.setEnhancedWithoutOrthoName(tokenizer.nextToken());
client.setEnhancedWithOrthoName(tokenizer.nextToken());
client.setBillingFee(s);
client.setSecurityCode(tokenizer.nextToken());
You may be arbitrarily sorting though, make sure Client implements Comparable<Client> interface.
In the future, please select a more descriptive title of the issue, and wrap all code in [code][/code] or [php][/php] tags to preserve formatting.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php