import java.io.IOException; public class FindLengthOf { public static void main( String[] args ) throws IOException { Play document = new Play( args[0] ); int length = Integer.parseInt( args[1] ); System.out.println( "The play in the file " + args[0] + " contains " + document.wordsOfLength( length ) + " words of " + length + " characters." ); } }