Skip to content

Commit

Permalink
Restructured
Browse files Browse the repository at this point in the history
Restructured a few more files and folders
  • Loading branch information
maxygdell committed Sep 4, 2024
1 parent df383f1 commit 40303db
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 44 deletions.
4 changes: 2 additions & 2 deletions Lecture_notes/Codealongs/C1.1 - Hello World.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ public class HelloWorld {
}
```

Navigate to the "codealongs/HelloWorld" folder in your repository, here you will find an empty source-file named "HelloWorld.java". This is where we will enter the above code! Make sure that you get everything exactly right, else it might not compile.
Navigate to the "codealongs/HelloWorld" folder in your repository, [here](/codealongs/HelloWorld/) you will find an empty source-file named `HelloWorld.java`. This is where we will enter the above code! Make sure that you get everything exactly right, else it might not compile.

If you get lost, you will find a completed version of this code in the "codealongs" folder of the repo.
If you get lost, you will find a completed version of this code in [codealongs](/codealongs/HelloWorld/finished/) folder of the repo.

### Executing your program
Now, there's a lot going on here, but don't worry too much about that, we will get into all the details eventually. For now, we will just be happy about having created our first Java program. To run a Java program, the source code needs to be compiled into bytecode, which can be interpreted by the Java Virtual Machine (JVM). There's an explicit way of doing this, via the terminal, and there's an automatic way to do it in VSCode. For now, let's start with the automatic way. To execute your code, press either the triangle-shaped "Run Java" button in the top right-hand corner of your screen, or the grey "Run" command just above the line in your code that includes the call to `main()`. If everything works as it should, you will see a terminal prompt opening on the bottom of your screen, and the message "Hello World!" displayed. Amazing! We have created and run our first Java Program!
Expand Down
File renamed without changes.
42 changes: 0 additions & 42 deletions Main.java

This file was deleted.

5 changes: 5 additions & 0 deletions codealongs/HelloWorld/HelloWorld.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package codealongs.HelloWorld;

public class HelloWorld {

}

0 comments on commit 40303db

Please sign in to comment.