I want to add a String to a list, but I get the error
Type mismatch: cannot convert from String to List
Initially I did it as follows:
List accDetails = tm.get(accNo);
and then like this:
String conv = (String)tm.get(accNo); List accDetails = conv;
Both have the same problem.
note: tm is a TreeMap
What am I doing wrong?