Command line interface in Java
I want to create a command line interface in Java on Solaris. I want that when I give my application name on command prompt then it enters into a new prompt naming my application name and then I can enter my other commands on it. When give command quit on that prompt it comes out of that new prompt to the normal prompt. Something like shown below.
test>commands are given here.
I could not find an appropriate sample code to enter into new prompt.
Can anyone please tell me how to accomplish this in Java.
Thanks in advance,