Code import static java.lang.System.out; public class TMyGStack1 { public static void main(String[] args) { MyGStack stk = new MyGStack(); out.print("Pushing: "); for (int i=1; i<20; i+=2) { out.print(i + " "); stk.push(i); } out.print("\n\nPopping: "); while (!stk.isEmpty()) { out.print(stk.pop() + " "); } } }