Shell one-liner: Difference between revisions
Content deleted Content added
m →{{header|D}}: use token string |
BrianFennell (talk | contribs) |
||
Line 181:
That said, note that J interpreters can themselves be thought of as [[wp:Command_shell|command shells]].
=={{header|Java}}==
Works with bash on Unix/Linux/MacOSX/Windows+cygwin
<PRE>
$ echo 'public class X{public static void main(String[] args){System.out.println("Hello Java!");}}'>X.java;javac X.java;java X
Hello Java!
</PRE>
Works with cmd.exe on Windows (tested on Microsoft Windows XP [Version 5.1.2600])
<PRE>
C:\echo public class X{public static void main(String[] args){System.out.println("Hello Java!");}}>X.java&&javac X.java&&java X
Hello Java!
</PRE>
=={{header|JavaScript}}==
|