Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. import bsh.EvalError;
  2. import bsh.Interpreter;
  3. public class X {
  4.  
  5. public static void main(String[] args) throws EvalError {
  6. Interpreter bsh = new Interpreter();
  7. String expr = "20>10";
  8. bsh.eval("boolean b="+expr);
  9. Boolean b = (Boolean)bsh.eval("b");
  10. System.out.println(b);
  11. }
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement