Java examples to demonstrate sorting of Arrays and Collections