public static String[] splitStringIntoArray(String value){
  String[] values=new String[0];
  if (value != null && value.length() > 0) {
    if (value.indexOf(CIMConstants.COMMA_SEPERATOR) != -1) {
      values=value.split(",");
    }
 else {
      values=new String[1];
      values[0]=value;
    }
  }
  return values;
}

public static String [ ] splitStringIntoArray ( String value ) { String [ ] values = new String [ 0 ] ; if ( value != null && value . length ( ) > 0 ) { if ( value . indexOf ( CIMConstants . COMMA_SEPERATOR ) != - 1 ) { values = value . split ( "," ) ; } else { values = new String [ 1 ] ; values [ 0 ] = value ; } } return values ; }
this method will help you to split the string separated with comma into a string array
