Skip to content

Instantly share code, notes, and snippets.

@danielfone
Last active May 10, 2017 22:59
Show Gist options
  • Select an option

  • Save danielfone/3db3a4618fc7381f06f2935a73d9bbff to your computer and use it in GitHub Desktop.

Select an option

Save danielfone/3db3a4618fc7381f06f2935a73d9bbff to your computer and use it in GitHub Desktop.
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