Blog Posts

Recent posts

Java - Predefined funtional interface

less than 1 minute read

1. Void return and zero paramter Use Runnable 1 2 3 4 5 6 void runTask(Runnable task) { task.run(); } runTask(()-> { // do something }); 2. Return v...

Java - Try with resources

less than 1 minute read

From Java7, it introduced the mechanism to release the resource automatically as C# does with using statement. In C#, you can use the using statement to rele...