i need a working code
1 Goals - Write lava code to sort a sequence of elements into ascending order by using the following sorting algorithms: Eubble, Selection, insertion, Shell, Merge and Quick Sorts - Write Java code to build graphical user interface GUl application. - Assess the efficiency of various sort algorithms. 2 Description and Requirements Graphical demonstrations of various sorting algorithms are instructive, as they provide insight into how an algorithm behaves. Consider a collection of vertical lines of varying lengths, such as the ones in Figure 1a. Create a sorting demonstration that sorts the lines by length, as shown in Figure 1b. You should draw the configuration of lines after every swap or move that a given sorting algorithm makes. If you delay execution very briefly after each redraw, the result will be an animation of the sort. Figure 1: An animated sorting demonstration that sorts vertical lines (a) before its execution (b) after its execution. CSCE 4110 - Algorithms Assignment 1 1. You need to read and exercise some of the examples provided in Unit-2 in the course lecture notes before starting to implement the requirements of this assignment. 2. You begin by drawing 256 lines, each one pixel wide but of different lengths and perhaps different colors arranged from shortest to longest so that they appear as a triangle. 3. The user then should exercise an option (one button click) to seramble the lines. At anyone click you should generate a new random scrambled lines, and then disable the action of this button untif the all sorting methods are applied. 4. At a user signal, (button click, ot radio button selection) your sorting algocithm should sort the lines. 5. When one sort method is finished, the user should have an option to reset the sorted lines back as they were before applying this sorting method. 6. When all sorting methods have finished, the serambling button can then be enabled and used to generate another random scrambled lines. 7. This means that, each sort should start with the same scrambled lines so the user can compare methods