public static Boolean saveResults(int QuizId, Map<Integer, Integer> selectedAnswers, int UserId) {
       String Statement = "INSERT INTO QUIZRESULT (QUIZID, QUESTIONID, USERID, ANSWERID) VALUES";
       for (Map.Entry<Integer, Integer> answerpair : selectedAnswers.entrySet())
       {
           String valstring = String.format("(%d, %d, %d, %d),", QuizId, answerpair.getKey(), UserId, answerpair.getValue());
           Statement+= valstring;
       }
       Statement = Statement.substring(0, Statement.length()-1); //cutting of last comma;
       Boolean Success = runStatement(Statement);
       return Success;
               
    }