Hello Everybody!
I hope that all you will be fine. My Question is with reference of
java.
I want to make formula syntax in another place and it will go in backend process and execute. for example:
public static void main(
String args[])
{
try
{
int myResult = myFormula("(a * b)/c");
System.out.println(myResult);
}
}
public int myFormul(String Str_Variable)
{
int a = 32, b = 20, c = 2,result = 0;
try
{
result = Str_Variable;
return result;
}
}
How is it possible in java? please write any example for it.