Using Java I am importing a CSV file which contains a list of topic types and questions. I have produced a list of the topics (in my test I have 10 topics and 29 questions).
I would like to create a series of lists for each topic, but instead of typing the list names directly into the source code which I currently have I would like to use names generated from values in the CSV file.
//current code (ExamQuestion is a custom class)
List<ExamQuestion> hardwareList = new ArrayList<>();
//desired code (in real version variable value would come from CSV file)
String listName = "hardwareList";
List<ExamQuestion> listName = new ArrayList<>();