Last active
January 3, 2020 12:32
-
-
Save igabice/e813050d8ed14f3df89bda37490bee1f to your computer and use it in GitHub Desktop.
DistanceUtil
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
class DistanceUtil { | |
static Double toMeters(Double distance_away) { | |
Double newDistance = distance_away * 1000; | |
return newDistance; | |
} | |
} | |
// Usage | |
main() { | |
... | |
DistanceUtil.toMeters(firstStore.distance_away); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment