Java Split String Into Multiple Variables Solver Math