The following is a demonstration of the Java echo command,
$ java jecho Hello World
Hello World
Compiling jecho is as follows,
$ javac jecho.java
Note how jecho carefully adheres to the POSIX standard,
$ java jecho -n should not work
-n should not work
$ java jecho "and \n's need not work either"
and \n's need not work either