title: Use only one BufferedReader object to read multiple files in java
body: <p>I have multiple BufferedReader objects based in Java. I have declared many <code>BufferedReader</code> objects for reading each separate file, but the problem is how can I have one object only for reading files in order to loop with <code>for</code> each? Here is my sample source code and it is better to reduce it.</p>
  
  <pre><code>FileInputStream f1 = new FileInputStream(filepath);
  BufferedReader b1 = new BufferedReader(new InputStreamReader(f1));
  
  FileInputStream f2 = new FileInputStream(filepath);
  BufferedReader b2 = new BufferedReader(new InputStreamReader(f2));
  
  FileInputStream f3 = new FileInputStream(filepath);
  BufferedReader b3 = new BufferedReader(new InputStreamReader(f3));
  </code></pre>