Java tutorial
public class Main { public static void main(String[] args) { Character c1 = new Character('a'); Character c2 = new Character('a'); String str1 = "Equal "; if (c1.equals(c2)) { System.out.println(str1); } } }