title: Elegant way to find min of an array using method parameters?
body: <p>I'm looking for an elegant way to express this pseudo code. For my assignment, I cannot change the method signature or parameter type.</p>
  
  <pre><code>    private static int smallest(int... nums)
      {
          return Arrays.stream(nums).min().getAsInt();
      }
  </code></pre>
  
  <p>All I'm trying to do is take a huge varying list of <strong>ints</strong> as a parameter from the method call and return the smallest <strong>int</strong> of all the <strong>int</strong> parameters. I've tried to google and read the API to find out how to correctly implement this, but I've gotten only this far. Can someone help me syntactically correct this to compile and output correctly? </p>
  
  <p>I cannot correctly post my console errors with formatting, so I'm posting it as an update to my OP. To answer @Marvin I'm getting this error in my compiler...</p>
  
  <pre><code>Methods1.java:25: error: cannot find symbol
    int small = Arrays.stream(nums).min().getAsInt();
                ^
  symbol:   variable Arrays
  location: class Methods1
  1 error
  </code></pre>