the java simple demo