Skip to content

Commit

Permalink
Add Hello application
Browse files Browse the repository at this point in the history
  • Loading branch information
sormuras committed Apr 15, 2024
1 parent afa83cf commit 4abe504
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/bach.run/Hello.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) 2024 Christian Stein
* Licensed under the Universal Permissive License v 1.0 -> https://opensource.org/license/upl
*/

class Hello {
public static void main(String... args) {
String name = args.length == 0 ? System.getProperty("user.name") : String.join(" ", args);
System.out.printf("Hello %s!%n", name);
}
}

0 comments on commit 4abe504

Please sign in to comment.