Created
June 30, 2021 15:55
-
-
Save aniketmlk6/de1cd95ed59424d60c61d9875142b2c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
Character char1 = new Character('a'); | |
Character char2 = new Character('b'); | |
if (Character.compare(char1, char2) == 0) { | |
System.out.println("the characters are same"); | |
} else { | |
System.out.println("the characters are different"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment