CollectMan java program