@@ -0,0 +1,1459 @@
+import java.util.*;%0Aimport java.util.ArrayList;%0Aclass ObStack%3CT%3E extends ArrayList%3CT%3E %7B%0A%0A  private static final long serialVersionUID = 1L;%0A%0A  final T pop() %7B%0A    final int last = this.size() - 1;%0A    return this.remove(last);%0A  %7D%0A%0A  final void push(final T O) %7B%0A    add(O);%0A  %7D%0A%0A  final T peek() %7B%0A    return get(this.size() - 1);%0A  %7D%0A %0A%7D%0A%0A%0Apublic class Obstackk %7B%0A%09 public static int%5B%5D randomm()  %7B%0A%09      int seed=3;int%5B%5D data;int random;%0A%09      data=new int%5B10%5D;%0A%09    /*  for (int i=100,j=1;i%3C105;i++,j++)%7B%0A%09          random=i*seed+seed*(i-seed);%0A%09          data%5Bj%5D=random;%0A%09          System.out.println(random);%0A%09      %7D%0A%09      */%0A%09      %0A%09      for (int i=100,j=0;j%3C5;i=i*seed,j++)%7B%0A%09          random=i*seed+seed*(i-seed);%0A%09          data%5Bj%5D=random;%0A%09         // System.out.println(random);%0A%09      %7D%0A%09      %0A%09      return data;%0A%09      %7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09ObStack%3CString%3E ob=new ObStack%3CString%3E();%0A%09%09int%5B%5D a=randomm();%0A%09%09String b=Integer.toString(a%5B0%5D);%0A%09%09ob.push(b);%0A%09%09System.out.println(%22Pushing %22+ b);%0A%09%09String ba=Integer.toString(a%5B1%5D);%0A%09%09ob.push(ba);%0A%09%09System.out.println(%22Pushing %22+ ba);%0A%09%09String bc=Integer.toString(a%5B2%5D);%0A%09%09ob.push(bc);%0A%09%09System.out.println(%22Pushing %22+ bc);%0A%09%09String bcd=Integer.toString(a%5B3%5D);%0A%09%09ob.push(bcd);%0A%09%09System.out.println(%22Pushing %22+ bcd);%0A%09%09System.out.println(%22Top %22+ob.peek());%0A%09%09ob.pop();%0A        System.out.println(%22Top After Pop %22+ob.peek());%0A%09%7D%0A%0A%7D%0A%0A

Create Obstackk.java