public static boolean isValidFileNameCharacter(char c){
  for (  char ch : FORBIDDEN_SYMBOLS_IN_FILE_NAME) {
    if (ch == c) {
      return false;
    }
  }
  return true;
}

public static boolean isValidFileNameCharacter ( char c ) { for ( char ch : FORBIDDEN_SYMBOLS_IN_FILE_NAME ) { if ( ch == c ) { return false ; } } return true ; }
checks is the character valid for file name
