MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Method main

Java/HashCodeDemo.java:2–11  ·  view source on GitHub ↗
(String args[])

Source from the content-addressed store, hash-verified

1public class HashCodeDemo {
2 public static void main(String args[]){
3 String text ="Ganga";
4 String text1 ="GangaRiver";
5 Integer e = text.hashCode();
6 System.out.println(text1.hashCode());
7 String str = text1.substring(0,5);
8 System.out.println(str);
9 Integer f = text1.hashCode();
10 System.out.println(e.equals(f));
11 }
12}

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.80

Tested by

no test coverage detected