private String solveMultiplyDivide(String expression) throws Exception {

        //This regex was easy though.
        //Split string by * and /.
        String[] subExp = expression.split("(\\*|\\/)");

        //Operator (*,/) sequence.
        ArrayList<String> operators = new ArrayList<>();

        //Fill operator sequence out.
        for (int i = 1; i < expression.length(); i++) {
            if ((expression.charAt(i) == '*' || expression.charAt(i) == '/')) {

                operators.add(String.valueOf(expression.charAt(i)));
            }
        }

        //Solve left-most expression of the string.
        double value = Double.parseDouble(selectAndSolve(subExp[0]));

        //Solve other expressions and do operations with first value.
        for (int i = 1; i < subExp.length; i++) {
            if (operators.get(i - 1).equals("*")) {
                //Multiply
                value *= Double.parseDouble(selectAndSolve(subExp[i]));
            } else {
                //Divide
                value /= Double.parseDouble(selectAndSolve(subExp[i]));
            }
        }

        //Return solved sub expression.
        return String.valueOf(value);
    }