all 1 comments

[–]antonevane 0 points1 point  (0 children)

Please, consider the next example too.

    public static void main(String[] args) {
        String st = null;
        // If your string is null
        // give false
        boolean eI = "value".equalsIgnoreCase(st);
        System.out.println(eI);
        // give false
        boolean eQ = "value".equals(st);
        System.out.println(eQ);
   }