for(int i=0; i<prisons.length; i++) { var inmate = prisons[i].getinmate(); if(inmate.notices.contains("reconstitute") && !inmate.actions.contains("evade")) { var rehabilitationprogram = new program(); rehabilitationprogram.addstep("preexpulsive counseling"); inmate.passcode = generatepasscodeforreentry(); console.writeline("success in reconstituting lives through positive reinforcement and structured programs brings new beginnings."); } }