Foods that are good for you when you have a stomach ulcer include probiotics such as yogurt and buttermilk. Fruits and vegetables such as kale, carrots, broccoli, red/green peppers, grapes, cabbage juice, kiwi fruit and apricots. All these are rich in vitamin C and bioflavonoids. Foods to avoid with stomach ulcer include spicy food such as peppers, chilies and hot sauces. Greasy and fried food such as tea, tobacco, coffee, colas, and chocolates should be eliminated. Citrus foods can cause discomfort in the stomach of an ulcer patient.