JAVA demo