Added some Java code