added stackdemo.java

added stackdemo.java