Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active February 3, 2026 20:26
Show Gist options
  • Select an option

  • Save dacr/e4d928a85acd580b4a756fd7ff36a735 to your computer and use it in GitHub Desktop.

Select an option

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/418c4e514936d8f9b71e34527bad94d0e5fbe100
// summary : scala cli - hello world in java with using lib directive
// keywords : java, scalacli, helloworld, @testable, @fail
// publish : gist
// authors : David Crosson
// license : Apache License Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.txt)
// 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