public class Array {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
String ctr="";
int size= Integer.parseInt(JOptionPane.showInputDialog("Enter any 10 numbers:"));
String num[]= new String [11];
for (int i=1; i<=size;i++){
num[i]=JOptionPane.showInputDialog("num["+i+"];");
ctr=ctr+num[i]+ " ";
}
JOptionPane.showMessageDialog(null, ctr);
}
}
thats my code, what should happen in there is that, the numbers that i have inputted should be shown on an ascending and descending order.
i still dont know how to use sort.array so i guess ill have to do it on another way..
please help me thank you