I want to convert some String to an operator like this:
String
int value = 1; int valueToCompare = 3; String operation = \"<\"; if (value operation
The simplest way would be a chain of if-else statements checking what the the operator is and then performing the mathematical expression.