compare Java7