Even, Odd with min and max for the Odd only : <p>Prompt the user to enter the size of an array and allow the user to 
input integer values to your array. Check each element if it is even
or odd. If even, print solved elemets (ascending order), If odd, get
the max and min using conditional statement. Output the result.</p>

<pre><code>public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    System.out.println("Enter a number: ");
    int n = sc.nextInt();
    int s[] = new int[n];
    for (int i = 0; i &lt; n; i++) {
        int e = sc.nextInt();
        s[i] = e;
    }

    Arrays.sort(s);
    System.out.println("\nEven numbers in ascending order:");
    for (int j = 0; j &lt; n; j++) {

        if (s[j] % 2 == 0) {
            System.out.print(s[j] + " ");
        }
    }

    System.out.println("\nOdd numbers in descending order:");
    for(int j = (n -1); j &gt;= 0; j--) {
        if (s[j] % 2 == 1) {
            System.out.print(s[j] + " ");
        }
    }
}
</code></pre>

<p>I don't know how to add min/max for the Odd</p>
