Smarter, Sweeter and Shorter Java

I know, nowadays if you want to achieve something elegantly you don't have to use Java. I prefer, for example, Groovy for writing small tools for myself, because for many mundane tasks it has far more expressive and concise syntax than the Java language, thus more productive. But, in my work, there are many situations in which I do not have a choice, the clients dictate to use Java, I have to. This page is a collection of goodies to make programming with Java less verbose, less tedious, and less painful. This page will be updated from time to time. I hope you'll also find this page helpful. 

String Manipulation:

1. Michael Scharhag: Java Can Finally Join Strings.

File, IO Operations:

1. Read files in a directory, old way and the groovy Java 8 way.
2. Delete all files in a directory.

No comments:

Post a Comment