Demonstration of Java.js.

Compiling a PI calculation program from Java to JS, and execute it in the browser.

Original Java souce code:

Compiled JavaScript source code:

Result: