Pregunta de entrevista de KiwiTech

Question how you can create a stack in Java? I answered - using a Dqueue- asked me to write the code ( he was not sure even we can)