Through their investigation, the San Luis Obispo Police Department had identified Jay Hernandez as a suspect and issued an arrest warrant.
Hernandez turned himself in at the Tulare County Jail on Saturday. He posted a $25,000 bail and was released on bond, San Luis Obispo police said.
One of the men, which police say was Hernandez, allegedly stabbed them before both suspects fled. The two victims were treated for non life-threatening injuries at a hospital, police have said.
Police Sgt. Chad Pfarr said Sunday that Hernandez is originally from the Central Valley and is living in San Luis Obispo while attending Cuesta College.
Police served a search warrant at his San Luis Obispo home Friday evening, Pfarr said. Hernandez was not at the home at the time.
Pfarr said that the department is not commenting on the second suspect yet. The investigation into the assault is continuing.
Anyone with information is asked to contact the San Luis Obispo Police Department at 805-781-7317 or Crime Stoppers at 805-549-STOP.