Java compare two strings

Java compare two strings
refer‮‬ to:lautturi.com
/**
 * @author lautturi.com
 * Java example: how to compare two strings in java
 */

import java.util.*;

public class Lautturi {
	public static void main(String[] args) {
		
		String str1 = "hello";
        String str2 = "Hello";
        String str3 = "Hello";

        System.out.println( str1.equals(str2) ); 
        System.out.println( str2.equals(str3) ); 
        
	}
}

output:

false
true
Created Time:2017-09-03 09:15:33  Author:lautturi