title: Displaying odd values in an array
body: <p>I am trying to display the odd numbers in an array, but only once per number (i.e. numbers[3] = 3,3,1; would only display 3 and 1 instead of 3, 3 and 1.) </p>
  
  <p>this is the code that I have as of now, the program completely will create an with the specific length entered by the user and then will calculate the max min, and odd values in the array. </p>
  
  <pre><code>import java.util.Scanner;
  
  public class ArrayLab
  {
  static Scanner input = new Scanner (System.in);
  
  public static void main(String[] args)
  {
      System.out.println("Enter the number of numbers: ");
      final int NUMBER_OF_ELEMENTS = input.nextInt();
  
      double[] numbers = new double[NUMBER_OF_ELEMENTS];
      System.out.println("Enter the numbers: ");
  
      for (int i = 0; i &lt; NUMBER_OF_ELEMENTS; i++)
      {
          numbers[i] = input.nextDouble();
      }
      input.close();
  
      double max = numbers[0];
      double min = numbers[0];
  
      for (int i = 0; i &lt; NUMBER_OF_ELEMENTS; i++)
      {
          if (numbers[i] &gt; max)
          {
              max = numbers[i];
          }
      }
      System.out.println("The max is: " + max);
  
      for (int i = 0; i &lt; NUMBER_OF_ELEMENTS; i++)
      {
          if (numbers[i] &lt; min)
          {
              min = numbers[i];
          }
      }
      System.out.println("The min is: " + min);
  
      for (int i = 0; i &lt; NUMBER_OF_ELEMENTS; i++)
      {
          if (numbers[i] % 2 != 0)
          {
              System.out.println ("The odd numbers are: " + numbers[i]);
          }
      }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>thanks for any help. </p>