I need to convert a string, such as "12 / 4", into a double value. I may not be explaining it well but I am sure you can see what I am trying to do.
I haven't tried much since I don't have much of a clue what I need to do :(.
public static double evaluateString(String str){
double value;
// Some code
return value
}
If str = "12 / 4", I want the value to return 3.