fork(1) download
  1. import java.util.Arrays;
  2.  
  3. class OrdenaArgumentos {
  4. public static void main() {
  5. String [] nomes = new String []{ " rafael cosentino ", " jonas hirata ", " marcelo martins "};
  6. java.util.Arrays.sort(nomes);
  7. for (String nome : nomes) {
  8. System.out.println(nome);
  9. }
  10. }
  11. }
Success #stdin #stdout 0.09s 320576KB
stdin
Standard input is empty
stdout
 jonas hirata 
 marcelo martins 
 rafael cosentino