Last active
August 29, 2015 14:19
-
-
Save suddeb/af9b4ae57066a9e8a214 to your computer and use it in GitHub Desktop.
HelloWorld
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 HelloWorld { | |
public String calculateDistance(){ | |
Integer distance = calculateDistanceBetweenAB() + | |
calculateDistanceBetweenBC() + | |
calculateDistanceBetweenCD() + | |
calculateDistanceBetweenDA(); | |
if(distance > 100){ | |
return 'You should go by flight'; | |
}else{ | |
return 'You can try going by car'; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment