data is converetd into 2D string array in java program. the data is divided into rows as new line and in column is seperated by'|'. now how can i sort the above 2D array on basis of column number7. can you help me with sorting code in above data. i want to sort array such that column 7 has entries in desencding order
my txt file data is as follow:
2013-11-01 00:00:00|1|0|0.3521|||0.0273|
2013-11-01 00:00:00|1|33|||||0.0261
2013-11-01 00:00:00|1|39|1.7322|1.1047|0.5919|0.402|57.7729
2013-11-01 00:00:00|2|0|0.3581|||0.0273|
2013-11-01 00:00:00|2|33|||||0.0274
2013-11-01 00:00:00|2|39|1.7334|1.088|0.602|0.4109|57.8875
2013-11-01 00:00:00|3|0|0.3644|||0.0273|
2013-11-01 00:00:00|3|33|||||0.0287
2013-11-01 00:00:00|3|39|1.7348|1.0701|0.6128|0.4203|58.0095
2013-11-01 00:00:00|4|0|0.3349|||0.0273|
the above data is converetd into 2D string array in java program. the data is divided into rows as new line and in column is seperated by'|'. now how can i sort the above 2D array on basis of column number7. can you help me with sorting code in above data. i want to sort array such that column 7 has entries in desencding order
Step by step
Solved in 2 steps with 1 images