First thing to remember is that Java doesn't really have a "2D array". All arrays have a single dimension BUT any element may itself be an array (etc recursively). So what you have is an array of arrays. It sounds like you want to sort the "outer" array using the first element of each sub-array for the sort order.
You can create a comparator that compares two Objects, and in it you cast the Objects to Object and compare their first elements. You can then use that comparator to sort an array of arrays.
Yeah, i could get throught the read CSV file problem... I have marked it solved...
Could you please give me an example of a code that use comparator class... ? I could better understand by that way... `
Section 4 (Sort an Object with Comparator) shows a decent example (but read 1-3 first so it makes sense). In your case the Objects you are sorting are the "inner" arrays, so you will just want to compare their first elements (don't forget to cast them to arrays first, or you won;t be able to reference their elements).
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...