On creating a Java program
0
I am completely new to Java, and I want to start by saying that I am a beginner. I use Macbook.
With that said, I'm going to create, compile and execute a Java program. Don't know if you use the JDK or a text editor called TextPad in Windows, I have Visual Studio Code.
This is what it says in the file with the instructions:
So this is how I first started oon my macbook: https://i.stack.imgur.com/pwf63.png
The error message I get is:
The declared package "" does not match the expected package "Programmering"And I was told that I need to write ”Package Programmering;” at the top. I am not sure why that solves the problem, and why it's not mentiooed in the instructions.
2 Replies
Hey, @dghf!
Please remember to
/close
this post once your question has been answered!Unknown User•3y ago
Message Not Public
Sign In & Join Server To View