Is there a way to run or simulate running Java statements (kind of like IDLE - the Python GUI) without compiling and running the executable? I want to quickly test statement
As of Java 11 (JEP 330) it is now possible to run Java files directly with the java tool:
java Factorial.java 3 4 5 is informally equivalent to javac -d Factorial.java java -cp Factorial 3 4 5
Java also added support for "shebang" files.
For more details see: http://openjdk.java.net/jeps/330