I want to convert some String to an operator like this:
String
int value = 1; int valueToCompare = 3; String operation = \"<\"; if (value operation
You could try using a switch statement:
switch(operation) { case "<" : //code here break; case ">" : //code here break; case "==" : //code here break; }