Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Java (http://www.go4expert.com/forums/java/)
-   -   How sort 2 dimensional array in Java (http://www.go4expert.com/forums/sort-2-dimensional-array-java-t15605/)

hansari 26Dec2008 08:43

How sort 2 dimensional array in Java
 
Hi friends,

I need the full source code for sorting the 2 dimensional array

int student[][] = new int [100][2];

my input to the array is

1 200
2 900
3 400
4 500
5 300
6 100
........

and i need output in the descending order like

2 900
4 500
3 400
5 300
1 200
6 100

.................

please help me by giving full source code.

Thank you
hasan


All times are GMT +5.5. The time now is 03:02.