add some function to deal with demo.java
add some function
demo program