Created
October 1, 2017 01:43
-
-
Save Lanace/c631471d8cf90e0dc0e9c1d661ec2d76 to your computer and use it in GitHub Desktop.
String간에 문자열 비교 예제
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 class StringCompareExample { | |
public static void main(String args[]) { | |
String a = "test"; | |
String b = "test"; | |
if (a == b) { | |
System.out.println("같음"); | |
} else { | |
System.out.println("다름"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment