I have a string seperated by ',' comma. How to split the string?
You may use following code:
String subStr = imageStyle.split(",");
There is a method split() which can be used for splitting a string based on the delimiter.
Please check the tutorial.