Skip to content

Instantly share code, notes, and snippets.

@pirate
Created February 7, 2017 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirate/c85cf19c43f3ac6d55f81700cf357f49 to your computer and use it in GitHub Desktop.
Save pirate/c85cf19c43f3ac6d55f81700cf357f49 to your computer and use it in GitHub Desktop.
public class ScopeTest {
public static void main(String[] args) {
int result = 0;
addNumbers(12, 24);
System.out.println(result);
}
private static int addNumbers(int num1, int num2) {
int result = num1 + num2;
return result;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment