From 7da7d4e51db3f600df1cd7cf7a011d4e317e03af Mon Sep 17 00:00:00 2001 From: Leo Date: Thu, 23 Apr 2026 12:10:55 +0200 Subject: [PATCH] feat: ex 2c --- .gitignore | 4 +++- sheet01/a2/c-hash.txt | 1 + sheet01/a2/c.txt | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 sheet01/a2/c-hash.txt diff --git a/.gitignore b/.gitignore index f08278d..133b45b 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -*.pdf \ No newline at end of file +*.pdf +sheet01/a2/Hash.java +*.class \ No newline at end of file diff --git a/sheet01/a2/c-hash.txt b/sheet01/a2/c-hash.txt new file mode 100644 index 0000000..97f4f9f --- /dev/null +++ b/sheet01/a2/c-hash.txt @@ -0,0 +1 @@ +03087115 \ No newline at end of file diff --git a/sheet01/a2/c.txt b/sheet01/a2/c.txt index e69de29..3957132 100644 --- a/sheet01/a2/c.txt +++ b/sheet01/a2/c.txt @@ -0,0 +1,3 @@ +javac Hash.java (Compiles the java class) +java Hash plaintext.txt (runs the custom Hash function on the text file) + Output: 03087115 \ No newline at end of file