We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac812fc commit 31809ddCopy full SHA for 31809dd
Java/HashCodeDemo.java
@@ -0,0 +1,12 @@
1
+public 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
+}
0 commit comments