Reversing word with Stack
问题 I am not sure why this is giving me an error. I am in the method pop and i want to return the value stored at the position top. Though it says they are incompatible types. I do not see why it should be a problem as I only want the character to be printed out at the position. This is part of a bigger program just so you know and will be getting the word from a different class. public class Stack { private int maxSize; private String[] stackArray; private int top; /** * Constructor for objects