I am very very new to java and I'm trying to create the echo class found in UNIX in java. Basically, if I type in:
Echo 'i love you'
the command line prints
i love you
I have that part figured out, however, I can't seem to figure out the command line option -n
which gets rid of the newline
I edited by code after reading the comment. However, it is still not doing what I hoped. My new code
The output of my new code
As you can see, even after I enter the -n
, the word is still on a newline