im good at java
This commit is contained in:
parent
58f365a40a
commit
f0204593c9
2 changed files with 16 additions and 0 deletions
16
Destination.java
Normal file
16
Destination.java
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
0
SelfDrivingCar.java
Normal file
0
SelfDrivingCar.java
Normal file
Loading…
Reference in a new issue