Dear all,
I have a list object, which contains list objects. This list objects contains objects of different type like String, long, BigDecimal and so on..
for eg.,
if we print it in console it will be like this,
list object is :
[
[jerald,26,"#32 chennai", 43.0098],
[Roses,25,"#06 kanya kumari", 13.00108]
]
this example object has two records and should be compared with similar two record list object. comparision should be done by its data type. For eg., BigDecimal objects , we shoud take care of comparing like this,
bigdecimal1.com pareTo(bigdecim al2)
I have an array of datatype {String, int,String,BigD ecimal} to compare. please any one help.
I have a list object, which contains list objects. This list objects contains objects of different type like String, long, BigDecimal and so on..
for eg.,
if we print it in console it will be like this,
list object is :
[
[jerald,26,"#32 chennai", 43.0098],
[Roses,25,"#06 kanya kumari", 13.00108]
]
this example object has two records and should be compared with similar two record list object. comparision should be done by its data type. For eg., BigDecimal objects , we shoud take care of comparing like this,
bigdecimal1.com pareTo(bigdecim al2)
I have an array of datatype {String, int,String,BigD ecimal} to compare. please any one help.
Comment