added main getter java program