Skip to content

Unhandled exception EmptyStackException in QueueUsingTwoStacks.java #2605

@aitorfi

Description

@aitorfi

Describe the bug
The program should print "null" to show that the inStack is empty but instead the program crashes when trying to access an element of the empty stack.

Screenshots
imagen
imagen
imagen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions