#Problem with importing scanner
24 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @vagrant flicker! Please use
/closeor theClose Postbutton above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
is your file in a folder named test?
also it should be on the first line before imports, but i don't think that's the issue
it would help a lot of you could actually show the error
it will be 'class' or 'interface' expected since as you mentioned pkg declaration needs to be at the top
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
@urban fjord does this help?
the problem seems to be that ur file need to be in the package of it's folder
so should i make a new package? and import scanner there
the scanner isn't the problem,try making a new folder and then adding this file in it,the package name should be the same as the folder name the file is
and honestly for java u should try VSCode it's very good as IDE
I struggle with that IDE
like i tried it out for a c++ course
but i guess the runner extension didnt work
my friend installed linux but i constantly have to compile the code myself
change to VScode it's a nice IDE
which is a pain
ill try playing around with the extensions again