Sorted array in Java: how can I implemnted?
**Implement a function that examines an array and returns 0 or 1, where 0 indicates the array is unsorted and 1 indicates the array is sorted.
b) If array is unsorted, Implement a selection sort that removes duplicates during the sorting process.** 
Sorted array in Java: how can I implemnted?
===

**Implement a function that examines an array and returns 0 or 1, where 0 indicates the array is unsorted and 1 indicates the array is sorted.
b) If array is unsorted, Implement a selection sort that removes duplicates during the sorting process.** 