A set of frequently needed source codes for Java