Adds println to Demo.java

adds functionality to the Demo.java program, which
was basically the standard java boilerplate before.