I have the below method which will return string.
private String getExpectedList() {
return expectedSList;
}
so i am storing it in string like as shown below
String t = this.getExpectedList();
upon debugging i found that method inside t the string is like comma separated as shown below
System.out.println(t);
bonrs01721.am.grp.net:17202,bonrs01422.am.grp.net:17203,bonrs01622.am.grp.net:17204
i was thinking to design a method which will take the string and then split each of them and finally add it in list and the list will be of type string so finally a method of which return type is list
so i have designed a list
List<String> holdvalues = new List<String>();
how can i design such a method as mentioned above