I am learning JAVA. If I want to add some variables on list. What I know how is like this:
String a = "a";
String b = "b";
String c = "c";
List<String> verifyItem = Arrays.asList(a, b, c);
How about if I have many variables. For example, from a to z, do I need to manually add it like that?
List<String> verifyItem = Arrays.asList(a, b, c, d, ..., y, z);
Because I declared 100+ variables and need to add them on list. Do we have other approaches to add them smarter? Any hotkey in Eclipse or Intellij?
Thanks for your help.