Write a RainFall class that stores the total rainfall for each of 12 months into an array of doubles. The program should have methods that return the following:
Demonstrate the class in a complete program and use java 8 examples to do so. Input Validation: Do not accept negative numbers for monthly rainfall figures.
Breaking it down