I and more used to how things are done in C# than how things are done in java. The following lines are in java:
List <String> cIDs = null;
cIDs.add("something");
This shows a warning in eclipse. It says that the variable cIDs can only be null at this location. This tell me that the add will fail.
I tried writing some instantiate code:
cIDs = new List<String>()
but this does not work in java.
How do I add elements to a list of strings in java?