Buggy code:
public class Chromosomes { private int numChromosomes = 50 ; private int fitness = 0 ; public int [ ] [ ] [ ] chromosomes = null ; public static int timeslot = 40 ; public static int roomCount = 0 ; public static int moduleCount = 0 ; public static int lecturerCount = 0 ; private String roomType = "" ; private String overallTimetable = "" ; private int [ ] rooms ; private int [ ] modules ; private int freeChromosome = 0 ; private int freeRoom = 0 ; private int freeTimeslot = 0 ; private boolean consecutiveFreeGeneFound = false ; ReadInputs read = new ReadInputs ( ) ; Fitness fit = null ; public long startTime = System . currentTimeMillis ( ) ; public long endTime = 0 ; public Chromosomes ( ) { } public void Chromosomes ( int [ ] partimeLecturers , int [ ] startTimes , int [ ] stopTimes , int [ ] days ) { } private void initializePopulation ( ) { } private void initializePopulationWithElitism ( ) { } public String getFitnessOnAContraint ( int chromosome ) { String message = "" ; message += ( ( "H2:Non-Multiple<seq2seq4repair_space>Scheduling<seq2seq4repair_space>for<seq2seq4repair_space>Lecturer:<seq2seq4repair_space>" + ( fit . computeMultipleScheduleForALecturerAtSameTime ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH2Reward ( ) ) ; message += ( ( "<br//>H3:Non-Multiple<seq2seq4repair_space>Scheduling<seq2seq4repair_space>for<seq2seq4repair_space>Cohort:" + ( fit . computeMultipleScheduleForACohort ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH3Reward ( ) ) ; message += ( ( "<br//><seq2seq4repair_space>H4:Part-time<seq2seq4repair_space>Lecturer<seq2seq4repair_space>availability<seq2seq4repair_space>observed:" + ( fit . computePartimeLecturerAvailablityScheduling ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH4Reward ( ) ) ; message += ( ( "<br//><seq2seq4repair_space>H5:All<seq2seq4repair_space>modules<seq2seq4repair_space>Scheduled:" + ( fit . computeToVerifyAllModulesWereScheduled ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH5Reward ( ) ) ; message += ( ( "<br//><seq2seq4repair_space>H6:Special<seq2seq4repair_space>Module<seq2seq4repair_space>correctly<seq2seq4repair_space>allocated<seq2seq4repair_space>to<seq2seq4repair_space>preffered<seq2seq4repair_space>room<seq2seq4repair_space>and<seq2seq4repair_space>time:" + ( fit . computeSpecialModuleConstraintViolation ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH6Reward ( ) ) ; message += ( ( "<br//><seq2seq4repair_space>H7:Classes<seq2seq4repair_space>held<seq2seq4repair_space>in<seq2seq4repair_space>correct<seq2seq4repair_space>room<seq2seq4repair_space>size:" + ( fit . computeClassHeldInCorrectRoomSizeFitness ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH7Reward ( ) ) ; message += ( ( "<br//>H8:<seq2seq4repair_space>Classes<seq2seq4repair_space>held<seq2seq4repair_space>in<seq2seq4repair_space>correct<seq2seq4repair_space>room<seq2seq4repair_space>type:<seq2seq4repair_space>" + ( fit . computeClassHeldInCorrectRoomTypeFitness ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxH7Reward ( ) ) ; message += ( ( "<br//>S9:<seq2seq4repair_space>Not<seq2seq4repair_space>more<seq2seq4repair_space>than<seq2seq4repair_space>4-hr<seq2seq4repair_space>consecutive<seq2seq4repair_space>Events<seq2seq4repair_space>for<seq2seq4repair_space>Lecturer:" + ( fit . computeMoreThan4HoursOfConsecutiveLecturesPerLecturer ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxS9Reward ( ) ) ; message += ( ( "<br//><seq2seq4repair_space>S10:Not<seq2seq4repair_space>more<seq2seq4repair_space>than<seq2seq4repair_space>4-hr<seq2seq4repair_space>consecutive<seq2seq4repair_space>Events<seq2seq4repair_space>for<seq2seq4repair_space>a<seq2seq4repair_space>Cohort:<seq2seq4repair_space>" + ( fit . computeMoreThan4HoursOfConsecutiveLecturesPerCohort ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . getMaxS10Reward ( ) ) ; message += ( "<br//><seq2seq4repair_space>S11:<seq2seq4repair_space>No<seq2seq4repair_space>lecture//Lab<seq2seq4repair_space>fixed<seq2seq4repair_space>on<seq2seq4repair_space>Wednesday<seq2seq4repair_space>afternoon:<seq2seq4repair_space>" + ( fit . computeWednesdayAfternoonEventConstraint ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>5" ; message += ( "<br//><seq2seq4repair_space>S12:<seq2seq4repair_space>No<seq2seq4repair_space>lecture//Lab<seq2seq4repair_space>during<seq2seq4repair_space>Launch<seq2seq4repair_space>time:<seq2seq4repair_space>" + ( fit . computeAvoidLaunchTimeEvents ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>5" ; endTime = System . currentTimeMillis ( ) ; <START_BUG> message += ( ( ( ( "<br//>Overall<seq2seq4repair_space>fitness<seq2seq4repair_space>for<seq2seq4repair_space>Chromosome<seq2seq4repair_space>" + ( chromosome + 1 ) ) + "<seq2seq4repair_space>is:<seq2seq4repair_space>" ) + ( fit . computeOverallFitnessForAChromosome ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . maxPossibleFitnessValue ( ) ) ; <END_BUG> return message ; } private void findUnoccuppiedGene ( int currentChromosome ) { } private void findConsecutiveUnoccuppiedGene ( int currentChromosome ) { } private boolean insertGene ( int chromosomeIndex , int roomIndex , int timeslot , int module ) { } private boolean isLastDayTimeSlot ( int timeslot ) { } private boolean isOccupied ( int chromosome , int room , int time ) { } private int getNumberOfHoursAlreadyAllocated ( int module , int chromosome ) { } private void initialAllChromosomesToZero ( ) { } public int generateRandomInteger ( int maxNumber ) { } public String displayGeneratedTimetable ( int chromosome ) { } }

Fix:
message += ( ( ( ( ( "<br//><span<seq2seq4repair_space>class=\"success\">Overall<seq2seq4repair_space>fitness<seq2seq4repair_space>for<seq2seq4repair_space>Chromosome<seq2seq4repair_space>" + ( chromosome + 1 ) ) + "<seq2seq4repair_space>is:<seq2seq4repair_space>" ) + ( fit . computeOverallFitnessForAChromosome ( chromosome ) ) ) + "<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fit . maxPossibleFitnessValue ( ) ) ) + "<//span>" ;