Update Demo.java

from online