1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How sort 2 dimensional array in Java

Discussion in 'Java' started by hansari, Dec 26, 2008.

  1. hansari

    hansari New Member

    Joined:
    Dec 26, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    student
    Location:
    kathmandu, nepal
    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
     

Share This Page