This file contains hidden or 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
public class Sorter { | |
public static void main(String[] args) { | |
printArray(sortArray(new int[]{5, 0, 40, 10, 30, 25})); // Output is going to be sorted | |
} | |
// Sorts the given array | |
private static int[] sortArray(int[] array) { | |
int[] arr = new int[array.length]; | |
int bigger = 0; |
This file contains hidden or 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
public class Hello { | |
public static void main(String[] args) { | |
System.out.print("Hello, GitHub!"); | |
} | |
} |