Add files for Kotlin. Both are working successfully.

This commit is contained in:
me committed 2024-03-30 12:18:46 -07:00
1 parent 4944681eef
commit 94e83c042b
6 files changed
+132 -1

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# 2024-03-30 Hyperling
# Compile the .kt file and run the compiled binary.
# Move to the file location.
DIR="$(dirname -- "${BASH_SOURCE[0]}")"
cd $DIR
# Compile the script.
kotlinc spare_change.kt -include-runtime -d spare_change.kt.jar
# Run the executable.
chmod 755 ./spare_change.kt.jar
java -jar spare_change.kt.jar
rm -rfv ./spare_change.kt.jar