aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-12-10 10:45:51 -0600
committerRossTheRoss <msattr@gmail.com>2019-12-10 10:45:51 -0600
commitd24d251c59780b1f8432d4d83d01a1384f08bfd3 (patch)
tree463d8ea4e8ad9d5bca662f186eb7a81b7f1a11f6
parentA (diff)
downloadhomework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar.gz
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar.bz2
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar.lz
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar.xz
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.tar.zst
homework-d24d251c59780b1f8432d4d83d01a1384f08bfd3.zip
Make some changes, I guess
-rw-r--r--csci1913/Java/lab13_strap012.java2
-rw-r--r--csci1913/Java/project3/project3_strap012.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/csci1913/Java/lab13_strap012.java b/csci1913/Java/lab13_strap012.java
index 8f6746b..e5ce45d 100644
--- a/csci1913/Java/lab13_strap012.java
+++ b/csci1913/Java/lab13_strap012.java
@@ -16,7 +16,7 @@ class Test
private static int hash(String name)
{
- return (name.charAt(0) + name.charAt(name.length()-1)) * name.length() % 997;
+ return (name.charAt(0) + name.charAt(name.length()-1)) * name.length() % 1023;
}
public static void main(String [] args)
diff --git a/csci1913/Java/project3/project3_strap012.java b/csci1913/Java/project3/project3_strap012.java
index 15d021b..8adef5a 100644
--- a/csci1913/Java/project3/project3_strap012.java
+++ b/csci1913/Java/project3/project3_strap012.java
@@ -84,9 +84,9 @@ class AnagramTree {
}
} catch (NullPointerException ignore) {
/*
- This exception exists as a kludge for any time
- subtree is null. The program does bad things (crash)
- if this is not present.
+ This exception exists as a kludge for any time
+ subtree is null. The program does bad things
+ if this is not present.
*/
}
}