16 lines
No EOL
555 B
Java
16 lines
No EOL
555 B
Java
public class Destination {
|
|
private String address;
|
|
private class coordinates {
|
|
private float longitude;
|
|
private float latitude;
|
|
|
|
private float getLongitude() {return longitude;}
|
|
private float getLatitude() {return latitude;}
|
|
public void setLongitude(float coord) {longitude = coord;}
|
|
public void setLatitude(float coord) {latitude = coord;}
|
|
public float[] getCoordinates() {
|
|
float[] coordsArray = {getLatitude(), getLongitude()};
|
|
return coordsArray;
|
|
}
|
|
}
|
|
} |