Java version with expression parsing at runtime.