java online runner code example
Example 1: online java compiler
Tutorialspoint: https://www.tutorialspoint.com/compile_java_online.php
Jdoodle: https://www.jdoodle.com/online-java-compiler/
Onlinegdb: https://www.onlinegdb.com/online_java_compiler
w3schools: https://www.w3schools.com/java/java_compiler.asp
Example 2: online java compiler
SandBox: https://codesandbox.io/
Example 3: online java compiler
Repl.it Compiler: click source buttton to go to the website
Pros: You can add files, do javafx and jswing.