Created
February 7, 2017 00:33
-
-
Save pirate/c85cf19c43f3ac6d55f81700cf357f49 to your computer and use it in GitHub Desktop.
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 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