Created
January 16, 2014 03:49
-
-
Save GrantSchiller/8449489 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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