So I want to make a java application which, while running, can run custom commands (not windows commands, commands for my application) from the command line, I can already do it, but I’d like to have a prompt such as > where you’d type commands, how can I output > and then remove it when it’s time to print something else to that line?
So I want to make a java application which, while running, can run custom
Share
On Java 6, you can use the
Consoleclass for that. Specifically, thereadLinemethod. From the API: