private void replaceAllNullsWithEmptyString(List<String> list){
  for (int i=0; i < list.size(); i++) {
    if (list.get(i) == null) {
      list.set(i,"");
    }
  }
}

private void replaceAllNullsWithEmptyString ( List < String > list ) { for ( int i = 0 ; i < list . size ( ) ; i ++ ) { if ( list . get ( i ) == null ) { list . set ( i , "" ) ; } } }
replaces all null values in the specified list with empty strings .
