j2se example