added a Java comparison