this is a demo for j2se edition