Green On The Outside But Red And Black Inside

Riddle: Green on the outside but red and black inside. I am food but mostly liquid. What am I?

Answer: watermelon