Deep Space Nine java program