public abstract class main5 { public static void main(String [] args) { ObjStackI s=new ObjStack(); ObjStackI t=new objstack(); s.push(2); System.out.println("s="+s); s.push(3); System.out.println("s="+s); s.push(7); System.out.println("s="+s); t.push("a"); System.out.println("t="+t); t.push("b"); System.out.println("t="+t); t.push("c"); System.out.println("t="+t); // System.out.println(""+s.pop()+s.pop()+s.pop()); System.out.println((Integer)s.pop()+(Integer)s.pop()+(Integer)s.pop()); // System.out.println(t.pop()+t.pop()+t.pop()); System.out.println((String)t.pop()+(String)t.pop()+(String)t.pop()); } }