title: Adding numbers to arrays with methods in another class?
body: <p>I am learning java and trying to figure out how to implement these methods into my main class from a second class. The program takes user input to add numbers into an array and then I need to print the following using the pre-specified methods below. The parameters in the below method is what confuses me. </p>
  
  <pre><code> public static double findMin(double[] numbers, int count) //count is the count of numbers        stored in the array
  
   public static double computePositiveSum(double[] numbers, int count)
  
   public static int countNegative(double[] numbers, int count)
  </code></pre>
  
  <p>Basically, I am confused as to how I link all the variables and array between the two classes so they can recognize the parameters and return the correct value to output min, sum and number of negatives. Do I want the array in the main method?</p>
  
  <hr>
  
  <p>Basically, what I did now to fix it was that I created the variables in the main method and then pass the variables in the main method through the parameters of the object I created that links to the secondary class. Does that seem ok?</p>