title: Multiple input parameters to Map function Java 8
body: <pre><code>  File inputF = new File("C:\\sample.csv"); //Line 1
    InputStream inputFS = new FileInputStream(inputF); //Line2
    BufferedReader br = new BufferedReader(new InputStreamReader(inputFS)); // Line3
    inputList = br.lines().skip(1).map(createObject).collect(Collectors.toList()); // Line 4 Function createobject below
  </code></pre>
  
  <p>In the fourth line above I am passing the list of lines that I have read from CSV file to function <code>createObject</code> below. I also have another csv file which has list of items. Suppose I have read the second file too in the function above .. now how can I pass list of lines in the second file to <code>createObject</code> Function along with the first file. I want to pass second file also because I want to check if items from first file are present in second file </p>
  
  <pre><code>public static Function&lt;String, YouJavaItem&gt; createObject= (line) -&gt; {
          List&lt;String&gt; firstFile= Arrays.asList(line.split(","));  
  </code></pre>
  
  <p>Example : I want to check if firstFile.get(2) say "abc" is present in list of items in file2 {"lmn", "ukl","xyz","abc"}</p>