4 ms·
Really? 1) Install node. 2) Write script. e.g. console.log('hello'); 3) Run script: > node script.js hello Java 1-10) Download Java * 11) Ensure
by iovrthoughtthis 9y ago
Really?
1) Install node.
2) Write script. e.g.
console.log('hello');
3) Run script:
> node script.js
hello
Java
1-10) Download Java *
11) Ensure JAVA_HOME is set right
12) Write java
public class Hello {
public static int main(String[] args) {
System.out.println("hello");
}
}
13) Compile java
> javac Hello.java
14) Run java
> java Hello
hello
* Yes, this is obviously facetious.
EDIT: Code formatting thanks to https://news.ycombinator.com/formatdoc https://news.ycombinator.com/formatdoc