Fix Java Won’t Update in OSX Sierra

I have an issue using Oracle JDK in my laptop that the auto updater successfully update the JDK but the update is not applied on my system. I check my java version using.

$ java -version

But still showing the old version rather than the latest one.
I fix my issue by putting this following line on my bash configuration.

export PATH="/Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin:$PATH"

Basic Reactive Programming with RxJava

Just found interesting blog post series about reactive programming with RxJava.

Thanks to Daniel Lew 😀


Parse ISO-8601 Date Format in Java

Here is code snippet to convert and parse String ISO-8601 formatted date using Joda-Time in Java.
In this case I have to parse it to more readable date time format.

String isoDate = "2015-09-03T12:32:45+0000";
DateTime dt = new DateTime(isoDate);
String newDate = dt.toString("d MMM YYYY, k:m"); // for more advanced pattern see
System.out.println(newDate); // 3 Sep 2015, 12:32