public Boolean isHidden(File f){
  String name=f.getName();
  if ((name != null) && !name.equals("") && (name.charAt(0) == '.')) {
    return Boolean.TRUE;
  }
 else {
    return Boolean.FALSE;
  }
}

public Boolean isHidden ( File f ) { String name = f . getName ( ) ; if ( ( name != null ) && ! name . equals ( "" ) && ( name . charAt ( 0 ) == '.' ) ) { return Boolean . TRUE ; } else { return Boolean . FALSE ; } }
whether the file is hidden or not . this implementation returns true if the filename starts with a " . "
