little Java class for easy output, input, etc.