public static boolean[] convertStringToBooleanArr(String noDictionaryColMapping){
  String[] splittedValue=null != noDictionaryColMapping ? noDictionaryColMapping.split(CarbonCommonConstants.COMA_SPC_CHARACTER) : new String[0];
  boolean[] noDictionaryMapping=new boolean[splittedValue.length];
  int index=0;
  for (  String str : splittedValue) {
    noDictionaryMapping[index++]=Boolean.parseBoolean(str);
  }
  return noDictionaryMapping;
}

public static boolean [ ] convertStringToBooleanArr ( String noDictionaryColMapping ) { String [ ] splittedValue = null != noDictionaryColMapping ? noDictionaryColMapping . split ( CarbonCommonConstants . COMA_SPC_CHARACTER ) : new String [ 0 ] ; boolean [ ] noDictionaryMapping = new boolean [ splittedValue . length ] ; int index = 0 ; for ( String str : splittedValue ) { noDictionaryMapping [ index ++ ] = Boolean . parseBoolean ( str ) ; } return noDictionaryMapping ; }
this will convert string to boolean [ ] .
