Skip to content

Commit

Permalink
Removed commented code and unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
UO289845 committed Mar 30, 2024
1 parent 4194058 commit d73218e
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package main.java.questionGenerator.generator.specificGenerators;

import java.util.ArrayList;
import java.util.List;
import java.util.Random;

import main.java.questionGenerator.generator.RightAnswerIsEntity;

public class LanguageGenerator extends RightAnswerIsEntity {
Expand All @@ -20,24 +16,4 @@ protected String getQuestion(String name) {
return String.format(q, name);
}

// @Override
// protected List<String> getWrongAnswers(String rightAnswer) {
// Random rnd = new Random();
// String[] entities = {"Q142", "Q183", "Q16", "Q142", "Q30", "Q408", "Q668", "Q17", "Q38", "Q159",
// "Q79", "Q155", "Q884", "Q414", "Q41", "Q258", "Q96", "Q843", "Q148", "Q20"};
// List<String> result = new ArrayList<>();
// List<Integer> used = new ArrayList<>();
// for(int i = 0; i < 3; i++){
// int rndnum = rnd.nextInt(entities.length);
// String wrong = getAnswer(entities[rndnum]);
// if(wrong.equals(rightAnswer) || used.contains(rndnum))
// i--;
// else{
// result.add(wrong);
// used.add(rndnum);
// }
// }
// return result;
// }

}

0 comments on commit d73218e

Please sign in to comment.