SolveIt java class changes

Changes:
-minor code optimization