View Single Post
  #11 (permalink)  
Old 12-12-2008, 05:03 PM
Sidmyre Sidmyre is offline
Member
 
Join Date: Nov 2008
Posts: 7
Rep Power: 0
Sidmyre is on a distinguished road
Default
Originally Posted by CJSLMAN View Post
You're getting the first employee because your're asking for the first employee everytime you go through the loop
Code:
StringTokenize employee=new StringTokenizer(employee[0]);
Try replacing the "0" with the "index" variable.

Also, look at the "for" statement:
  • is it index < employees.length ? or
  • is it index < employee.length?

Luck,
CJSL

its employees

Code:
String [] employees = {"John:Smith:35:12.75", 
"Mary:King:20:22.75", 
"Chris:Kennedy:40:15.75", 
"Angela:Jones:35:10.75", 
"Mark:Smith:35:18.75"};
Reply With Quote