The cars were parked in a city parking lot in Downtown Fresno.
Police said Hernandez is a transient and showed them how he got into the parking lot and the objects he used to break the windows. He told investigators he sold the phone charges and items he stole for narcotics.
Police want to remind people to remove everything from inside your car, even something as simple as visible spare change.