There's currently no Java eval. Let's work out a way to include this. Likely we'll have to just instruct the user to wrap the code in a class RubletsEvaluation or similar.
The workflow might look something like:
<CodeBlock> !java> public static void main(String[] args) { System.out.println("foo"); }
<rublets> CodeBlock: Please ensure your java code has a public RubletsEvaluation.main(String[] args).
<CodeBlock> !java> public class RubletsEvaluation { public static void main(String[] args) { System.out.println("foo"); } }
<rublets> foo
Yes, it's verbose but it'd bring us one step closer to supporting the top X languages.
There's currently no Java eval. Let's work out a way to include this. Likely we'll have to just instruct the user to wrap the code in a
class RubletsEvaluation
or similar.The workflow might look something like:
Yes, it's verbose but it'd bring us one step closer to supporting the top X languages.