Update Demo.java

add print 'end'