I've had three. Currently drive a 2001 Elantra. Current mileage is just over 100k. I've had the following problems:
Fuel pump failed @ 75k, cost $300 to fix
Catalytic converter failed @ 60k, replaced under warranty
A headlight bulb burns out every 30k miles or so
Clock shorted out @ 100k (took out interior lights and radio), $unknown - got to get it fixed.
I'm on the original brake pads and original clutch. I'm on my 3rd set of tires. I get 30-35 mpg on the freeway and around 25 around town. Paid a whopping $14k for it brand new five years ago, so I guess it's cost me $3k a year if I threw it away today.
I figure the brakes and clutch won't last more than 50k miles before needing replacement and the current set of tires will be gone by then too. At that point, I'll have a car with 150k miles, needing $1000 worth of parts and maintenance, which would probably double the value of the car.
I'd have no problems buying another one. The new Sonata looks pretty good in the car mag write ups and reviews.
I do have the car serviced every 15k miles per manufacturer specs and change the oil every 3k miles. I know I've spent far more in regular maintenance than repairs.