[Solved] Calculator without using more than 1 variable [closed]
It doesn’t look like you’re properly saving the results of your string split. x.split(” “); returns a String[] with each of the pieces that were separated by ” ” e.g. String x = “1 x 2″; String[] split = x.split(” “); split[0] == “1”; split[1] == “x”; split[2] == “2”; You could probably benefit from … Read more