@@ -0,0 +1,404 @@
+package KataProgramming;%0A%0Apublic class ResizingArrayStackOfString %7B%0A%0A%09String %5B%5D s;%0A%09int N = 0;%0A%09%0A%09public ResizingArrayStackOfString() %7B%0A%09%09s = new String%5B1%5D;%0A%09%7D%0A%09%0A%09public void push(String item)%7B%0A%09%09%0A%09%09if(N == s.length) resize(2 * s.length);%0A%09%09s%5BN++%5D = item;%0A%09%7D%0A%0A%09private void resize(int i) %7B%0A%09%09String%5B%5D copy = new String%5Bi%5D;%0A%09%09%0A%09%09for (int j = 0; j %3C N; j++) %7B%0A%09%09%09copy%5Bj%5D = s%5Bj%5D;%0A%09%09%7D%0A%09%09%0A%09%09s = copy;%0A%09%09%0A%09%7D%0A%7D%0A

add resizing array to use it in fixed stack