Tag Archives: Java

Donut time

Why on earth is this standard behavior? File[] files = dir.listFiles(filter); for (File file : files) { //snip } Throws a null pointer if dir has no files. Wtf. Why not an array of length 0? This code won’t ever … Continue reading

Posted in programming | Tagged , | Leave a comment