Lab assignment: Arrays and Simple Sorting

Start with the code at here
They are Board.java, Canvas.java, etc, which are very familiar to you. Replace the original Board.java with this one. It contains all helpful information that you need to complete all tasks.

1. In the Board.java that I provide, the constructor declares an array of ints. Your first task is to write a method displayIntArray() to display the contents of the array.

2. There is a method called selectionSort() that contains the pseudo-code for selection sort. Your second task is to implement it to sort the elements in intArray.

3. By default, the constructor will display some squares with random sizes on the Canvas. Your 3rd task is to implement sortSquare using selection sort to sort the Squares by increasing size, then redisplay them.