0

Product Table / Price column / Alias C1 / data [100000, 600000, 800000, 200000 ...]

example ==> (C1>700000?0.5:2)*20 > 20 AND C1 <80000" I input example text equation at textarea control.

When entering a example and clicking a button, I want to extract only a specific line.

I want to show only the results that correspond to the expression.

so, How can I convert a textual representation of a search expression to something that can be executed in Java?

is p
  • 1
  • 1
  • Does this answer your question? [JAVA - Expression parsing & evaluating library](https://stackoverflow.com/questions/11947553/java-expression-parsing-evaluating-library) – f1sh Jan 15 '20 at 08:39
  • you can also read https://tomassetti.me/parsing-in-java/ – f1sh Jan 15 '20 at 08:44
  • Added English narrative to clarify the question. Added markup to show the kind of queries that might be used. – Bob Dalgleish Jan 15 '20 at 14:31
  • Since java 9 JShell with its REPL can be used. Or the java scripting API. – Joop Eggen Jan 15 '20 at 15:00

0 Answers0