I'm trying to split a simple mathematics expression from it's parenthesis
For example : (8+(3(2+3)(4-1)))
to separate in to little expressions like (2+3), (4-1), (3*5*3), and finally (8+45)
.
I tried looking at here Splitting an expression, but since it's in python, I don't know how to implement it in Java.
Can someone please help me..