fixed Jenins/sonarqube issue about ' Constant names should comply with a naming convention  '
removed the switch design pattern from MainProgram.java