Write efficient code for extracting unique elements from a sorted list of array. e.g.
Write,efficientcodeforextractinguniqueelementsfromasortedlistofarray.e.g.(1,1,3,3,3,5,5,5,9,9,9,9)->(1,3,5,9). publicclassUnique{ publicstaticvoidmain(Stringargs[]) { int[]a=newint[]{1,1,1,3,3,3,4,