Java-Stack project from my study-homework