Added some simple Java code