Skip to content

Instantly share code, notes, and snippets.

@palmerabollo
Last active December 28, 2015 20:49
Show Gist options
  • Save palmerabollo/7560544 to your computer and use it in GitHub Desktop.
Save palmerabollo/7560544 to your computer and use it in GitHub Desktop.
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