This is a method that orders a string array using an algorithm, but apparently the code it uses shows an error in the comparison of the if
public void ordenar (Array3 a) {
String buffer = null;
int i =0;
while ( i< a.getArreglo().length) {
int j=0;
while (j<i) {
if (a.getArreglo(i)<a.getArreglo(j)) {
buffer = a.getArreglo(j);
a.setArreglo(j,a.getArreglo(i));
a.setArreglo(i,buffer);
}
j++;
}
i++;
}
}
Edit: I'm sorry for being unclear, I'm pretty new to this, the error that marks "The operator is undefined for the argument type (s) java.lang.String" I'm sorry if I do not put the whole program, but it's very extensive.