Last active
March 13, 2025 09:54
-
-
Save jmesnil/256b3fe1c07cc3ba1942034057f76b47 to your computer and use it in GitHub Desktop.
Simple Java application with JBang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
///usr/bin/env jbang "$0" "$@" ; exit $? | |
//DEPS com.github.lalyos:jfiglet:0.0.8 | |
import com.github.lalyos.jfiglet.FigletFont; | |
class myapp { | |
public static void main(String[] args) throws Exception { | |
String name = args.length==0 ? "World" : args[0]; | |
String hello = String.format("Hello, %s!", name); | |
System.out.println(FigletFont.convertOneLine(hello)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment