Guest User

Untitled

a guest
Mar 22nd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. public Long getKey(String value) {
  2. if(value == null){
  3. return 0L;
  4. }
  5. for (Entry table : table) {
  6. for (Entry e = table; e != null; e = e.next)
  7. if (value.equals(e.value))
  8. return e.getKey();
  9. }
  10. return null;
  11. }
Add Comment
Please, Sign In to add comment