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
package mergesort; | |
class MergeSortTutorial { | |
// Helper method to print out the integer array. | |
private static void printArray(int[] array) { | |
for(int i: array) { | |
System.out.print(i + " "); | |
} |
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
import java.util.Arrays; | |
import java.util.Scanner; | |
public class MergeSort { | |
public static void main(String[] args) { | |
int lentghOfArray = 0; | |
Scanner input = new Scanner(System.in); | |
System.out.println("What's the size of the array?"); |