So basically, I'm trying to create a simple java calculator for the following functions but it seems my functions are not executing the way they're supposed (i.e. + not adding, - not subtracting). Would appreciate some help :)
if (ope == "+") {
//add
} else if (ope == "-") {
//subtract
} else if (ope == "*") {
//multiply
} else if (ope == "/") {
//divide
}
}