Skip to content

Commit a46230d

Browse files
committed
add Hello, World!
1 parent 382e930 commit a46230d

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

HelloWorld.java

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
class HelloWorld {
2+
public static void main(String[] args) {
3+
System.out.println("Hello, World!");
4+
}
5+
}

README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# dev-container-java
1+
# dev-container-java
2+
3+
An opinionated dev container for Java and VS Code
4+
5+
## Prerequisites
6+
7+
To make best use of this repository, you need the following:
8+
9+
- Visual Studio Code
10+
- VS Code extension "Remote Development"
11+
- Docker Desktop (MacOS, Windows) or docker engine (Linux)
12+
- git client (https://git-scm.com/downloads)
13+
14+
## Getting Started
15+
16+
Once you have the container running, open a terminal inside VS Code and execute the following sequence of commands:
17+
18+
```bash
19+
cd /src
20+
javac HelloWorld.java
21+
java HelloWorld
22+
```
23+
24+
All going to plan, this will output "Hello, world!" in the console.

0 commit comments

Comments
 (0)