1 d arrays :: passing to a class

import java.io.*;
public class PassArrayToClass
{
  public static void main (String[] args) throws IOException
  {
    BufferedReader num = new BufferedReader (new InputStreamReader (System.in));
    
    int number[] = new int [5];
    
    // populate array
    for (int i = 0 ; i < number.length ; i++)
    {
      number [i] = Integer.parseInt (num.readLine ());
    }
    
    // object
    SmallNum sm = new SmallNum(number);
    
    //method call
    int x = sm.getLarge ();
   
    System.out.println ("The largest number is " + x);

    
  }// end of main 
  
}

class SmallNum
{
  private int largest;
  private int num [] = new int [5];   
  
  SmallNum(int x[])
  {
    num = x;
    calcLarge();
  }
  
  private void calcLarge ()
  {
    
    for (int i = 1 ; i < num.length ; i++)
    {
      if (largest < num [i])
      {
        largest = num [i];
      }
    }
  } // end of calcLarge
  
  int getLarge()
  {
    return largest;
  }
  
} // end of SmallNum