Read an integer array, print it, then sort it and print it. Use the bubble sort method