How To Check Array Is Sorted Or Not In Java