title: new BufferedReader in class Files cannot be applied to given types
body: <p><a href="https://i.stack.imgur.com/LxUuz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LxUuz.png" alt="enter image description here"></a></p>
  
  <pre><code>List&lt; String&gt; list = new ArrayList&lt;&gt;();
  
  try (BufferedReader br = Files.newBufferedReader(Paths.get(path))) {
  
      //br returns as stream and convert it into a List
      list = br.lines().collect(Collectors.toList());
  
  } catch (IOException e) {
       e.printStackTrace();
  }
  
  StringBuilder sb = new StringBuilder();
  for (String s : list) {
      sb.append(s);
  }
  
  String json = sb.toString();
  JSONParser parser = new JSONParser();
  obj = parser.parse(json);
  </code></pre>
  
  <p>I am getting this error please help !! </p>