find maching files in list
<p>I have a directory where a lot of files are saved Like </p>

<pre>
Template_ Batch120408.txt,
Template_ Batch120409.txt,
Template_ Batch120410.txt,
Template_ Batch120411.txt,
Template_ Batch120412.txt,
Template_ Batch120413.txt,
Batch120408.txt,
Batch120409.txt,
Batch120410.txt,
Batch120411.txt,
Batch120412.txt,
Batch120413.txt,
</pre>

<p>Currently there is a task which lists the files from directory and find the machingTemplate_ Batch file corresponding Batch120413 file(Batch120413.txt==>Template_ Batch120413.txt) from list and processes them sequentially (writing to a database). Due to the increasing number of files it is necessary to implement parallel processing of these files. Can you give me some ideas and a code example in java, please?</p>
