public T flashModes(FlashMode[] modes){
  return (flashModes(Arrays.asList(modes)));
}

public T flashModes ( FlashMode [ ] modes ) { return ( flashModes ( Arrays . asList ( modes ) ) ) ; }
sets the desired flash modes , in priority - first order ( the first flash mode will be used if supported , otherwise the second flash mode will be used if supported , . . . ) . these are a suggestion ; if none of these modes are supported , the default device behavior will be used .
