diff options
-rw-r--r-- | csci1913/Java/lab13_strap012.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/csci1913/Java/lab13_strap012.java b/csci1913/Java/lab13_strap012.java index e5ce45d..8645a98 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() % 1023; + return ((name.charAt(0) + name.charAt(name.length()-1)) * name.length()) % 255; } public static void main(String [] args) |