Is thıs code efficient always for finding array[max]?
<p>I am trying to find max value of an array, firstly i am shorting my array min to max after that i am using array[array.length-1] Is this logic efficient in large arrays?</p>

<pre class="lang-java prettyprint-override"><code>public static int findMax(int[] array){

    Arrays.sort(array);

    int max = array[array.length-1];

    return max;
}//end method
</code></pre>
