commit 21db4c2b0aa41ce3511e169d1cf08930ef0b3f63 parent 63ff9c2cd726c9f36f85bad2629a9710a56d44b1 Author: thing1 <thing1@seacrossedlovers.xyz> Date: Sat, 24 Jan 2026 22:19:25 +0000 tested java Diffstat:
| A | CS12320/practice/helloworld/.gitattributes | | | 12 | ++++++++++++ |
| A | CS12320/practice/helloworld/.gitignore | | | 5 | +++++ |
| A | CS12320/practice/helloworld/helloworld.java | | | 9 | +++++++++ |
3 files changed, 26 insertions(+), 0 deletions(-)
diff --git a/CS12320/practice/helloworld/.gitattributes b/CS12320/practice/helloworld/.gitattributes @@ -0,0 +1,12 @@ +# +# https://help.github.com/articles/dealing-with-line-endings/ +# +# Linux start script should use lf +/gradlew text eol=lf + +# These are Windows script files and should use crlf +*.bat text eol=crlf + +# Binary files should be left untouched +*.jar binary + diff --git a/CS12320/practice/helloworld/.gitignore b/CS12320/practice/helloworld/.gitignore @@ -0,0 +1,5 @@ +# Ignore Gradle project-specific cache directory +.gradle + +# Ignore Gradle build output directory +build diff --git a/CS12320/practice/helloworld/helloworld.java b/CS12320/practice/helloworld/helloworld.java @@ -0,0 +1,9 @@ +class helloworld { + public static void main(String[] args) { + System.out.println("I was given: " + args.length + " arguments"); + + int i = 1; + for (String arg : args) + System.out.println("Argument " + i++ + " is " + arg); + } +}