question: public static void deleteFiles ( File [ ] files , boolean wait ) { FileDeleteTask task = new FileDeleteTask ( files ) ; if ( wait ) task . run ( ) ; else { Thread t = new Thread ( task ) ; t . start ( ) ; } }
target:  Delete a list of one or more files in array order. If a particular file is deleted in the array, we guarantee that any previous files are also deleted. Files after may or may not be deleted due to failures.