mirror of
https://github.com/corda/corda.git
synced 2025-01-23 04:48:09 +00:00
test a simple loop in Simple.java
This commit is contained in:
parent
1dd25325c8
commit
011cbe44e3
@ -1,7 +1,11 @@
|
|||||||
public class Simple {
|
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) {
|
public static void main(String[] args) {
|
||||||
int a = 1;
|
pow(2, 3);
|
||||||
int b = 2;
|
|
||||||
int c = a + b;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user