If you need a simple list of size 1:
List<String> strings = new ArrayList<String>(Collections.singletonList("A"));If you need a list of several objects:
List<String> strings = new ArrayList<String>();Collections.addAll(strings,"A","B","C","D");
If you need a simple list of size 1:
List<String> strings = new ArrayList<String>(Collections.singletonList("A"));If you need a list of several objects:
List<String> strings = new ArrayList<String>();Collections.addAll(strings,"A","B","C","D");