title: Write a Java program using single dimensional array. Have a list of 10 numbers and fetch a value based on the index
body: <p>So I have this assignment for my Programming class, and I'm lost on what to do for the second part.  This is the code I have so far:</p>
  
  <pre><code>    class SingleArray
      {
        public static void main(String[]args)
        {
          int[] b=new int[]{5,10,15,20,25,30,35,40,45,50};
  </code></pre>
  
  <p>Not much I know, but I really am confused on how I would get it to fetch the different array values.  Do I have to import the util scanner to do this?  Any help to point me in the right direction?  Thanks guys!</p>