I have a string in the following format"
String s = name1, name2, name3, name4, name5,name6;
What is the best way out to get name1 out of this sing a generic solution which can be applied to a similar comma separated string?
Any help is appreciated.