Alfonso Saballett wrote:
"non-static variable driversName cannot be referenced from a static context" and the same with driversAge.
That's means, static method can see static varibale and methods only, so to access "driverName" and "driverAge", declare them static !!