Programming tips, prescribed patterns, and tricks in Java