Skip to content

Instantly share code, notes, and snippets.

@Lanace
Created October 1, 2017 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lanace/c631471d8cf90e0dc0e9c1d661ec2d76 to your computer and use it in GitHub Desktop.
Save Lanace/c631471d8cf90e0dc0e9c1d661ec2d76 to your computer and use it in GitHub Desktop.
String간에 문자열 비교 예제
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