Well a 'game engine' can be a number of things depending on how it was designed and what for. If you want to generalise, you could call it a package of middleware libraries that help the developer with common game programming tasks. This could be something as low level as memory management, network communication, rendering or something higher level such as path-finding.
What you seem to be asking is for an example of a console based games engine in Java- I don't exactly understand the question the way you have phrased it. I have seen 'game engines' in the past for text based adventures and MUD development but these were usually in C/C++ and I don't know of any in Java.
As a suggestion, if you want engine functionality, you can use a 3d one and just use the functionality you want, and then write your own class for outputting your game output to the console. The best designed engines are modular, so you will likely be able to use parts of it without being tied to the 3d renderer.