hi, i have a problem comparing values in an array and how to display them
sample:
int[] d = new int[c];
for(i=0,j=1;i<d.length;i++,j++){
d[i]=Integer.parseInt(JOptionPane.showInputDialog("Enter value : "+j));
}
i don't know how to start comparing values of each index's in the array..can someone help me? thanks BTW(new to this forum):)