stuff found in the Java book I use.