Skip to content

Commit

Permalink
Add Java source program
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Aug 10, 2023
1 parent 6c8535a commit f76f2be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ jobs:
- name: 'Print Java version'
shell: bash
run: java --version
- name: 'Run Java program'
shell: bash
run: java version.java
5 changes: 5 additions & 0 deletions version.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class version {
public static void main(String... args) {
System.out.println("Java " + Runtime.getRuntime().version());
}
}

0 comments on commit f76f2be

Please sign in to comment.