Array comparison

hi all,

Actually, i have an array this elements.

("james\tbond\t234235322\n");

("john\tpatel\t234523447\n");

("andrew\thudson\t899940987\n");

("andrew\thudson\t899940987\n");

I would like to compare the entry of an array by SSN which is last field.

Can anybody give me an idea how to do that?

[342 byte] By [Jigisha] at [2007-11-27 11:22:06]
# 1

Split the string into pieces using String's split method.

Create an object that has those elements as member variables.

Compare those objects by the ssn field.

jverda at 2007-7-29 14:52:53 > top of Java-index,Java Essentials,Java Programming...