Im new to java and trying to solve this Q. any one could help please
<pre><code>using a method and arrays, write a java program to find the maximum, minimum, sum, and average of 10 values. the values should be entered through the keyboard. the program must contain:

     a. main method to call the follwing methods.
     b. a method named READDATA to read the data values.
     c. a method named SUM to find the total of values.
     d. a method named MAX to find the maximum value in array.
     e. a method named MIN to find the minimum value in array.
     f. a method named EVENSUM to find the total of even values in the array.
     g. a method named ODDSUM to find the total of odd values in the array.
</code></pre>

<p>//finall code of Q</p>

<pre><code>     import java.util.*;
        public class methodsAndArrays{
</code></pre>

<p>//main method to call the follwing methods</p>

<pre><code>          public static void main(String args[]){ 
            int[] data = readData();

            System.out.println("THE SUM OF ALL VALUES IS "+sum(data));
            max(data);
            min(data);
            System.out.println("THE SUM OF EVEN VALUES IS "+evenSum(data));
            System.out.println("THE SUM OF ODD VALUES IS "+oddSum(data));
        }
</code></pre>

<p>//method named READDATA to read the data values</p>

<pre><code>        public static int[] readData(){
         Scanner s=new Scanner(System.in);
          int[]data=new int[10];

            for (int i=0;i&lt;10;i++){
            System.out.println("ENTER A VALUE");
               data[i]=s.nextInt();

            }
            return  data;   
        }
</code></pre>

<p>//method named SUM to find the total of values</p>

<pre><code>        public static int sum(int data[]){
          int total=0;
           for (int i=0;i&lt;10;i++){
          total+=data[i];
           }
          return total;
        }
</code></pre>

<p>//method named max to find the maximum value           </p>

<pre><code>        public static void max(int data[]){
          int max=0;
          for(int i=0;i&lt;10;i++){
            if (data[i]&gt;max){
              max=data[i];
            }
          }
          System.out.println("THE MAXIMUM VALUE IS "+max);
        }
</code></pre>

<p>//method named min to find the minimum value  </p>

<pre><code>        public static void min(int data[]){
          int min=9999;
          for(int i=0;i&lt;10;i++){
            if (data[i]&lt;min){
              min=data[i];
            }
          }
          System.out.println("THE MINIMUM VALUE IS "+min);
        }
</code></pre>

<p>//method named evensum to find the sum of even values </p>

<pre><code>        public static int evenSum(int data[]){
          int sumEven=0;
          for (int i=0;i&lt;10;i++){
            if (data[i]%2==0){
            sumEven+=data[i];
            }
          }
          return sumEven;
        }
</code></pre>

<p>//method named odddsum to find the sum of odd values</p>

<pre><code>        public static int oddSum(int data[]){
          int sumOdd=0;
          for (int i=0;i&lt;10;i++){
            if (data[i]%2==1){
            sumOdd+=data[i];
            }
          }
          return sumOdd;
        }

        }
</code></pre>
