Miscellaneous Java programs