From 55f709ed0a1ec197834d3da7945fcb60610b9ce1 Mon Sep 17 00:00:00 2001 From: jorge Date: Thu, 18 Apr 2024 15:55:47 +0200 Subject: [PATCH] Removed commented code --- questionGenerator/src/main/java/Main.java | 26 +++++++++++------------ 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/questionGenerator/src/main/java/Main.java b/questionGenerator/src/main/java/Main.java index a6a7a6c9..0758c9b2 100644 --- a/questionGenerator/src/main/java/Main.java +++ b/questionGenerator/src/main/java/Main.java @@ -12,23 +12,23 @@ public class Main { public static void main(String[] args) { QuestionGenerator qg = new QuestionGenerator("en"); - // run(qg, QuestionType.CAPITAL, 3); - // System.out.println(); + run(qg, QuestionType.CAPITAL, 3); + System.out.println(); - // run(qg, QuestionType.LANGUAGE, 3); - // System.out.println(); + run(qg, QuestionType.LANGUAGE, 3); + System.out.println(); - // run(qg, QuestionType.POPULATION, 3); - // System.out.println(); + run(qg, QuestionType.POPULATION, 3); + System.out.println(); - // run(qg, QuestionType.SIZE, 3); - // System.out.println(); + run(qg, QuestionType.SIZE, 3); + System.out.println(); - // run(qg, QuestionType.HEAD_OF_GOVERMENT, 3); - // System.out.println(); + run(qg, QuestionType.HEAD_OF_GOVERMENT, 3); + System.out.println(); - // run(qg, QuestionType.DIRECTOR, 3); - // System.out.println(); + run(qg, QuestionType.DIRECTOR, 3); + System.out.println(); run(qg, QuestionType.VIDEOGAME_DEVELOPER, 3); } @@ -40,6 +40,6 @@ private static void run(QuestionGenerator qg, QuestionType type, int numberOfQue question.setNumber(i); System.out.println(question.getJSON().toString()); } - // QuestionRepository.getInstance().insert(questions.stream().map(q -> q.getJSON().toString()).toList()); + QuestionRepository.getInstance().insert(questions.stream().map(q -> q.getJSON().toString()).toList()); } }