title: How can I select a value from an array?
body: <p>How can I select a value from an array? Example is this <code>String[] ans = {"+", "-", "/", "*"};</code> then I want to select <code>"+"</code>.</p>
  
  <pre><code>public static void main(String[] args) {
      String[] ans = {"+","-","/","*"};
      Random random = new Random();
      Scanner calcu = new Scanner(System.in);
      System.out.print("Enter First number: ");
      numOne = calcu.nextInt();
      System.out.print("Enter Second number: ");
      numTwo = calcu.nextInt();
      System.out.print("Choose an Operator to use");
  
  }
  </code></pre>