package Lect29Library; import java.util.*; public class StackExample { public String computeReverse(String str) { Stack stack = new Stack(); // Push the characters on the stack. // We cannot place primitives in the stack therefore // we need Character wrapper. for (int i=0; i