Java Array Programs Input Mapper