An abstraction of a simple console for Java