BERKELEY, Calif. (AP) _ Four University of California at Berkeley football players accused of raping a female student have agreed to apologize to her, undergo counseling and perform public service work, officials said.

''The resolution was what she wanted out of the case,'' university attorney Shelly Drake, who represented the female student, said Friday.

The woman, who was involved in negotiations for the settlement, said she was sexually assaulted Sept. 27 by the four men at the Clark Kerr dormitory just off campus.

G. William Hunter, attorney for the suspects, said the woman had dated at least one of the football players and witnesses said the sex acts in which the group engaged were ''consensual.''

The Alameda County district attorney's office declined to prosecute, saying there was insufficient evidence.

The incident touched off protests on campus and at football games, where placards proclaimed, ''UC Bears. We see rapists.''

University spokesman Ray Colvig said the men can continue to play football.