I'm trying to create a class First which contains at least 10 sayings as static
String data members.It also contains getFortune() method which picks and returns one of the sayings at random.This is the program I'm writing:
This program gives me an error that you cannot access non-static variable randGen from static method. what should I do?
Can someone help?
Thanks.