SHARE
TWEET

Untitled

a guest Apr 18th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @Override
  2.     public String[] getContentFile(String pathName) {
  3.  
  4.         try (Stream<String> contentFileStream = Files.lines(Paths.get(pathName))) {
  5.             return contentFileStream.toArray(String[]::new);
  6.         } catch (IOException e) {
  7.             throw new IllegalArgumentException(e);
  8.         }
  9.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top