title: How do I choose an specific file of my file Array List?
body: <p>I made a function that I call with a code similar to this:</p>
  
  <pre><code>String[] listado= formacion.list();
  for (int i; i&lt;listado.length; i++) {
      System.out.println("Los archivos de la carpeta"+rutaCarpeta+"son "+listado[0]
  }
  </code></pre>
  
  <p>With something similar to this, my array make a numbered list of the files that I have on a specific location, okay. Thing is, I would like to ask the user to select exactly a file (and its content) in order to see it thoroughly (I hope I'm making myself clear...) and I don't know why. For instance, if the array shows me these 3 files:</p>
  
  <ol>
  <li>book file</li>
  <li>food file</li>
  <li>nature file</li>
  </ol>
  
  <p>I would like the console to read what I type (for example if I choose 3, and it shows me specifically file number 3 and its content). I'm pretty newbie and I don't have a clue at all, even though I looked it up... I don't properly understand how to do it. Could you help me?</p>