Hey there, here’s code that doesn’t error Java Typing Game Solution
I changed essentially just removed the brackets from your database variable declaration, presumably moving them up a scope so they became global as per all of Main. Also, I removed WHYList as it has no purpose and I could not find any; if you decide to add it back, know you must change it so it adds a String, not int. Also, the loop will not run as if you do for (int i = 0; i > 10000; i++)i will initially not be > 10000 and terminate immediatly