1class scratch{
2 public static void main(String[] args) {
3 String str1 = "Nyello";
4 String str2 = "Hello";
5 String str3 = "Hello";
6
7 System.out.println( str1.equals(str2) ); //prints false
8 System.out.println( str2.equals(str3) ); //prints true
9 }
10}