added java version of 1.3