diff --git a/test/Simple.java b/test/Simple.java index 05b8bc39a0..9511bb80bb 100644 --- a/test/Simple.java +++ b/test/Simple.java @@ -1,7 +1,11 @@ public class Simple { + private static int pow(int a, int b) { + int c = 1; + for (int i = 0; i < b; ++i) c *= a; + return c; + } + public static void main(String[] args) { - int a = 1; - int b = 2; - int c = a + b; + pow(2, 3); } }