import java.io.IOException; public class PlayDemo3 { public static void main( String[] args ) throws IOException { Play hamlet = new Play( args[0] ); System.out.println( "The play in the file " + args[0] + " contains " + hamlet.startsWith( 't' ) + " words that start with 't'." ); System.out.println( "The play in the file " + args[0] + " contains " + hamlet.wordsOfLength( 5 ) + " words of length 5." ); System.out.println( "The play in the file " + args[0] + " contains " + hamlet.numberOfPalindromes() + " palindromes." ); } }