Last active
April 2, 2023 10:10
-
-
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
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
// 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