private static void updateQuizzes(SQLiteDatabase writableDatabase,List<Quiz> quizzes){
  Quiz quiz;
  ContentValues quizValues=new ContentValues();
  String[] quizArgs=new String[1];
  for (int i=0; i < quizzes.size(); i++) {
    quiz=quizzes.get(i);
    quizValues.clear();
    quizValues.put(QuizTable.COLUMN_SOLVED,quiz.isSolved());
    quizArgs[0]=quiz.getQuestion();
    writableDatabase.update(QuizTable.NAME,quizValues,QuizTable.COLUMN_QUESTION + "=?",quizArgs);
  }
}

private static void updateQuizzes ( SQLiteDatabase writableDatabase , List < Quiz > quizzes ) { Quiz quiz ; ContentValues quizValues = new ContentValues ( ) ; String [ ] quizArgs = new String [ 1 ] ; for ( int i = 0 ; i < quizzes . size ( ) ; i ++ ) { quiz = quizzes . get ( i ) ; quizValues . clear ( ) ; quizValues . put ( QuizTable . COLUMN_SOLVED , quiz . isSolved ( ) ) ; quizArgs [ 0 ] = quiz . getQuestion ( ) ; writableDatabase . update ( QuizTable . NAME , quizValues , QuizTable . COLUMN_QUESTION + "=?" , quizArgs ) ; } }
updates a list of given quizzes .
