Mar 13, 2018 · I would do this, rather than a basic List> as has been suggested, as this is then clear what each item is //This is your class for a single question. A list of these will //make up a paper. public class Genes { public string Question{ get; set; } public int CLO { get; set; } } //This is a Paper, which contains a list of Questions. public class Paper { public List friends = new ArrayList<> (List.of ("Peter", "Paul")); error: cannot find symbol ArrayList friends = new ArrayList<> (List.of ("Peter", "Paul")); ^ symbol: variable List. @GrzegorzPiwowarek The result of Arrays.asList is not immutable, it is just fixed length .
  • b1ztpg7z99.pages.dev/906
  • b1ztpg7z99.pages.dev/724
  • b1ztpg7z99.pages.dev/546