Find Largest and Smallest numbers in an Array in Java

public class FIndMaxandSmallNumber {

    /**
     * @param args
     */
    public static void main(String[] args) {
       
         int numArr[] = new int[]{91,16,4,99,33,153,48,29,68,85,100,105};
         int smallest = numArr[0];
         int biggest = numArr[0];
         for(int i=1; i< numArr.length; i++)
         {
         if(numArr[i] > biggest)
         biggest = numArr[i];
         else if (numArr[i] < smallest)
         smallest = numArr[i];
         }
         System.out.println("Largest Number is : " + biggest);
         System.out.println("Smallest Number is : " + smallest);
         }
}

Search: