I have 6 array lists and I would like to know which one is the longest without using a bunch of IF STATEMENTS.
“if arraylist.count > anotherlist.count Then….” <- Anyway to do this other than this?
Examples in VB.net or C#.Net (4.0) would be helpfull.
arraylist1.count
arraylist2.count
arraylist3.count
arraylist4.count
arraylist5.count
arraylist6.count
DIM longest As integer = .... 'the longest arraylist should be stored in this variable.
Thanks
Is 1
ifstatement acceptable?