Java examples to better code reuse...