Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. public int hashCode() {
  2. int hash = 0;
  3. for (int i = 0; i < s.length(); i++)
  4. hash = (hash * 31) + charAt(i);
  5. return hash;
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement