java help needed

hello, iam making a game on java, its a speed typing game, random words appear on the screen and u should type them before they go to the end of screen, for example if 10 words crossed the screen u will lose so my problem is i wanna put words in a file, and this file send these words to drawstring fuction, i made a class that read file and everything and make an object in the main and it gives me error , i want to send the words from the file to be displayed on the screen using the drawstring built in method , thank you in advance and here is my code the main: package projectt;