Added a small demo Java file.