some code to play around with JAVA lib.