import javax.script.ScriptEngine;
import javax.script.ScriptEngineManager;

public class Test {

static ScriptEngine jse = new ScriptEngineManager().getEngineByName("JavaScript");

public static void main(String[] args) {
String s = "1";
String e = "1";
String r = "equals";
String strs = "\"" + s + "\"." + r + "(\"" + e + "\")";
try {
String v = String.valueOf(jse.eval(strs));
if ("true".equals(v)) {
System.out.println(true);
} else {
System.out.println(false);
}
} catch (Exception t) {
t.printStackTrace();
}
}
}