Skip to content

Instantly share code, notes, and snippets.

@GrantSchiller
Created January 16, 2014 03:49
Show Gist options
  • Save GrantSchiller/8449489 to your computer and use it in GitHub Desktop.
Save GrantSchiller/8449489 to your computer and use it in GitHub Desktop.
// Sorts an array of integers
import java.util.Arrays;
public class refresharray2 {
public static void main(String[] args){
int[] input = new int[]{1,3,2,5,4};
Arrays.sort(input);
for (int i: input) {
System.out.println(i);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment