Generate a JavaDoc comment
PowerShell, 209 213
'/**
    $'
($i=&quot;$input&quot;)-replace'.*\( *| *\).*'-split','-ne''|%{&quot;@param $((-split$_)[1]) $&quot;}
,'@return $'*!($i-clike'void *')
if($i-match'\) *t'){$i-replace'.*\) *throws *'-split' *, *'|%{&quot;@throws $_ $&quot;}}'*/'

bash and PowerShell test scripts. but I'm probably missing a few cases still. But 22 tests are better than only one example, I guess :-)