Skip to content

Instantly share code, notes, and snippets.

@fitorec
Created October 29, 2009 21:29
Show Gist options
  • Save fitorec/221859 to your computer and use it in GitHub Desktop.
Save fitorec/221859 to your computer and use it in GitHub Desktop.
//funcion ordenamiento(Sort) en java Vector
import java.util.Vector;
import java.util.Collections;
public class SortExample {
public Vector sort(Vector v){
//es necesario importar #java.util.Collections;
Vector vec = v;
Collections.sort(vec);
return vec;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment