Created
June 26, 2016 16:14
-
-
Save polyglotpiglet/56e48d7fd5d865edbb3b6cb57a14fd20 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 static void main(String... args) { | |
| int count = 0; | |
| for (int i = 0; i<100000; i++) { | |
| count += wrapper(); | |
| } | |
| System.out.println(count); | |
| } | |
| private static int wrapper() { | |
| return doubleMe(2) + doubleMe(4); | |
| } | |
| private static int doubleMe(int x) { | |
| return 2*x; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment