A merge sort implementation together with comments in the output to help follow the recursion.
Useage:
javac mergeSort.java
echo 3 2 1 | java mergeSort
For more information about why I wrote this, see my blog: https://ianhocking.com/prog/posts/mergesort/