r/javahelp • u/Sir_QuacksALot • Sep 25 '25
Solved Import not working? Help!
Hi there,
I'm working on an assignment and I feel like I have a really stupid question and too embarrassed to ask the class discord because I started it late so here it goes...
why is the import greyed out after I type the ";"?
I tried running the program and it keeps telling me it cannot find the variable scanner and I think that is because the import goes grey
import java.util.Scanner;
import java.util.Arrays;
1
Upvotes
View all comments
Show parent comment
3
u/Sir_QuacksALot Sep 25 '25
Thank you! Yea that gave me a few ideas to try and it works now... I was missing a line in main