Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import bsh.EvalError;
- import bsh.Interpreter;
- public class X {
- public static void main(String[] args) throws EvalError {
- Interpreter bsh = new Interpreter();
- String expr = "20>10";
- bsh.eval("boolean b="+expr);
- Boolean b = (Boolean)bsh.eval("b");
- System.out.println(b);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement