Created
February 26, 2016 12:54
-
-
Save svachmic/7669d57bc92f6fcef3b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Files.walk(Paths.get(location)).forEach( | |
file->{ | |
if(Files.isRegularFile(file)) { | |
Car car = null; | |
try { | |
car = deserialize(file.toString()); | |
} catch (Exception e) { | |
e.printStackTrace(); | |
} | |
result.add(car); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment