question: private void writeKeysWithPrefix ( String prefix ) { for ( String key : keys ) { if ( key . startsWith ( prefix ) ) { ps . println ( key + "=" + prop . getProperty ( key ) ) ; } } ps . println ( ) ; }
target:  writes all keys starting with the specified prefix in alphabetical order.