Rhino is an open-source implementation of JavaScript written entirely in Java. It is typically embedded into Java applications to provide scripting to end users. It is embedded in J2SE 6 as the default Java scripting engine.
Follow my blog Post - http://brionmario.com/mozilla-rhino-javascript-engine/
Download the latest version - https://mvnrepository.com/artifact/org.mozilla/rhino
Visit their GitHub repository - https://github.com/mozilla/rhino
In this brief tutorial, I have created a basic activity which accepts an arithmetic expression and once you click the "FIND ANSWER" button, the anwer will be generated using the RHINO JavaScript engine.
Put this in the Module Dependencies - compile 'org.mozilla:rhino:1.7R4'