JAVA help

domain

New member
Registered
Need help with java array.
i am new to java and working with arrays.
i am able to print array and its elements.
like i have two arrays
String [] name = new String [5];
int [] marks = new int[5];
i have printed and its showing like
the markes of name are marks;
---output---
the marks of steve are 565
the marks of Adam are 495
which is perfact.
now i have sort array and result become
the marks of steve are 495
the marks of Adam are 656

is it possible that markes and name remain same even after sorted .
Thanks in advance.
 
Top