Added  a new method for the switch between printing a semi colon for the last enum value