Skip to content

Instantly share code, notes, and snippets.

@svachmic
Created February 26, 2016 12:54
Show Gist options
  • Save svachmic/7669d57bc92f6fcef3b1 to your computer and use it in GitHub Desktop.
Save svachmic/7669d57bc92f6fcef3b1 to your computer and use it in GitHub Desktop.
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