Last active
May 10, 2017 22:59
-
-
Save danielfone/3db3a4618fc7381f06f2935a73d9bbff to your computer and use it in GitHub Desktop.
This file contains hidden or 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 HelloWorld2 { | |
| public static Integer doubleNum(Integer x) { | |
| String answer2 = 'danswer.answer2' + '\n'; | |
| Boolean isPrime; | |
| isPrime = x / 3 == 0; // Note: Not really prime. | |
| if ( isPrime ) { | |
| return 0; | |
| } else { | |
| return x*2; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment