// SOLUTION)
public static void main(String[] args) {
		File dir = new File(".");
		Arrays.stream(dir.listFiles()).forEach(file -> {
			try {
				System.out.println(file.getCanonicalPath());
			} catch (IOException e) {
				throw new RuntimeException(e);
			}
			// Ouch, my fingers hurt! All this typing!
		});
		// TODO use Unchecked.consumer from JOOL library
		// SOLUTION(
		Arrays.stream(dir.listFiles()).forEach(Unchecked.consumer(file -> {
			System.out.println(file.getCanonicalPath());
		}));
		// SOLUTION)
	}
System.out.println(file.getCanonicalPath());
}));
// SOLUTION)
}
} catch (IOException e) {
throw new RuntimeException(e);
}
// Ouch, my fingers hurt! All this typing!
});
// TODO use Unchecked.consumer from JOOL library
// SOLUTION(
Arrays.stream(dir.listFiles()).forEach(Unchecked.consumer(file -> {
System.out.println(file.getCanonicalPath());
}));
// SOLUTION)
}
public static void main(String[] args) {
File dir = new File(".");
Arrays.stream(dir.listFiles()).forEach(file -> {
try {
System.out.println(file.getCanonicalPath());
} catch (IOException e) {
throw new RuntimeException(e);
}
// Ouch, my fingers hurt! All this typing!
});
// TODO use Unchecked.consumer from JOOL library
// SOLUTION(
Arrays.stream(dir.listFiles()).forEach(Unchecked.consumer(file -> {
System.out.println(file.getCanonicalPath());
}));
// SOLUTION)
}