Last active
December 28, 2015 20:49
-
-
Save palmerabollo/7560544 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 class Coordinates { | |
private double longitude; | |
private double latitude; | |
public Coordinates(double longitude, double latitude) { | |
this.longitude = longitude; | |
this.latitude = latitude; | |
} | |
} | |
Coordinates c1 = new Coordinates(1.34, 3.32); | |
Coordinates c2 = new Coordinates(1.34, 3.32); | |
String a = new String ("a"); | |
String b = new String ("a"); | |
String a1 = "a"; | |
Evaluar expresiones: | |
c1 == c1 | |
c1 == c2 | |
a == b | |
a == "a" | |
"a" == "a" | |
a1 == "a" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment