Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active April 2, 2023 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/e4d928a85acd580b4a756fd7ff36a735 to your computer and use it in GitHub Desktop.
Save dacr/e4d928a85acd580b4a756fd7ff36a735 to your computer and use it in GitHub Desktop.
scala cli - hello world in java with using lib directive / published by https://github.com/dacr/code-examples-manager #9173b660-9f23-48b4-8365-f0b6f450accc/e9da19ba05255560c5ce9e801f2c37401cbe6363
// summary : scala cli - hello world in java with using lib directive
// keywords : java, scalacli, helloworld, @testable, @fail
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : 9173b660-9f23-48b4-8365-f0b6f450accc
// created-on : 2022-01-09T17:50:59+01:00
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
//> using dep "org.apache.commons:commons-lang3:3.12.0"
import org.apache.commons.lang3.StringUtils;
// https://github.com/VirtusLab/scala-cli/issues/533
public class Issue533UsingLibForJava {
public static void main(String[] args) {
var message = "hello world";
System.out.println(StringUtils.capitalize(message));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment