question: private void createFile ( int number , String extention ) { for ( int i = 0 ; i < number ; i ++ ) { try { BufferedWriter output = new BufferedWriter ( new FileWriter ( new File ( textInputFolder + "/File" + String . valueOf ( i ) + extention ) ) ) ; try { output . write ( "File number " ) ; output . write ( String . valueOf ( i ) ) ; } finally { output . close ( ) ; } } catch ( IOException e ) { e . printStackTrace ( ) ; } } }
target:  This private method just creates a number of files with a specific extension.