An input of string is passed as an argument to a comptute function.The string can contain up to three values of numbers and some operators like * - / +? For example, "25.7-14*34" is valid
This is the format:
public double compute(String input){
...
}
I think I would need a condition to check if a character is an operator but I don't know how to check for it in Java. Can someone please help me out?