cleverer method extract
A common pattern I extract into a method looks like this
sb.append( xxxx);
...
sb.apppend(xxxx);
It would be tidier if the extracted method looked like this:
static String extractedMethod( xxxx )
{
final Stringbuilder sb = new StringBuilder(/* fill manually */);
sb.append( xxxx);
...
sb.apppend(xxxx);
return sb.toString();
}
--
Roedy Green Canadian Mind Products
http://mindprod.com
I would be quite surprised if the NSA (National Security Agency)
did not have a computer program to scan bits of shredded
documents and electronically put them back together like a giant
jigsaw puzzle. This suggests you cannot just shred, you must also burn.
.
Please sign in to leave a comment.