To do any gardening around here you have to think about these guys:
Fencing is the only way. Sometimes when my frig needs to be cleaned out, (pretty often) I'll toss out some old carrots or whatever. Unusual for only one javelina to come but once in a while there is a lone one. Most of the time they come in herds, maybe a dozen, and sometimes with babies.
The babies are so cute; when the mother moves around they move with her as if attached with a rubber band, it's so funny.