Update Stack.java
Merge pull request #5 from Jvar59/patch-6

changed to tos.getData