Getting a coconut in Animal Crossing is a matter of checking the beach. Each time you play, take a stroll along the shore, and every so often a coconut will wash up and be there for you to grab.
Keep checking regularly, and with a little patience you'll gather all the coconuts you need.