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)
	}
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);
			}
		
		});
	
	
		Arrays.stream(dir.listFiles()).forEach(Unchecked.consumer(file -> {
			System.out.println(file.getCanonicalPath());
		}));
	
	}
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); } }); arrays.stream(dir.listfiles()).foreach(unchecked.consumer(file -> { system.out.println(file.getcanonicalpath()); })); }