Created
June 3, 2014 10:30
-
-
Save jhowliu/98a26e9410a321d49bfd 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
1 | |
2 | |
3 | |
4 | |
5 | |
6 | |
7 | |
8 | |
9 | |
10 | |
11 | |
12 | |
13 | |
14 | |
15 | |
16 | |
17 | |
1 * 1 = 1 | |
1 * 2 = 2 | |
1 * 3 = 3 | |
1 * 4 = 4 | |
1 * 5 = 5 | |
1 * 6 = 6 | |
1 * 7 = 7 | |
1 * 8 = 8 | |
1 * 9 = 9 | |
2 * 1 = 2 | |
2 * 2 = 4 | |
2 * 3 = 6 | |
2 * 4 = 8 | |
2 * 5 = 10 | |
2 * 6 = 12 | |
2 * 7 = 14 | |
2 * 8 = 16 | |
2 * 9 = 18 | |
3 * 1 = 3 | |
3 * 2 = 6 | |
3 * 3 = 9 | |
3 * 4 = 12 | |
3 * 5 = 15 | |
3 * 6 = 18 | |
3 * 7 = 21 | |
3 * 8 = 24 | |
3 * 9 = 27 | |
4 * 1 = 4 | |
4 * 2 = 8 | |
4 * 3 = 12 | |
4 * 4 = 16 | |
4 * 5 = 20 | |
4 * 6 = 24 | |
4 * 7 = 28 | |
4 * 8 = 32 | |
4 * 9 = 36 | |
5 * 1 = 5 | |
5 * 2 = 10 | |
5 * 3 = 15 | |
5 * 4 = 20 | |
5 * 5 = 25 | |
5 * 6 = 30 | |
5 * 7 = 35 | |
5 * 8 = 40 | |
5 * 9 = 45 | |
6 * 1 = 6 | |
6 * 2 = 12 | |
6 * 3 = 18 | |
6 * 4 = 24 | |
6 * 5 = 30 | |
6 * 6 = 36 | |
6 * 7 = 42 | |
6 * 8 = 48 | |
6 * 9 = 54 | |
7 * 1 = 7 | |
7 * 2 = 14 | |
7 * 3 = 21 | |
7 * 4 = 28 | |
7 * 5 = 35 | |
7 * 6 = 42 | |
7 * 7 = 49 | |
7 * 8 = 56 | |
7 * 9 = 63 | |
8 * 1 = 8 | |
8 * 2 = 16 | |
8 * 3 = 24 | |
8 * 4 = 32 | |
8 * 5 = 40 | |
8 * 6 = 48 | |
8 * 7 = 56 | |
8 * 8 = 64 | |
8 * 9 = 72 | |
9 * 1 = 9 | |
9 * 2 = 18 | |
9 * 3 = 27 | |
9 * 4 = 36 | |
9 * 5 = 45 | |
9 * 6 = 54 | |
9 * 7 = 63 | |
9 * 8 = 72 | |
9 * 9 = 81 | |
1 , 1 | |
2 , 1 | |
2 , 3 | |
3 , 1 | |
3 , 4 | |
3 , 7 | |
4 , 1 | |
4 , 5 | |
4 , 9 | |
4 , 13 | |
5 , 1 | |
5 , 6 | |
5 , 11 | |
5 , 16 | |
5 , 21 | |
6 , 1 | |
6 , 7 | |
6 , 13 | |
6 , 19 | |
6 , 25 | |
6 , 31 | |
7 , 1 | |
7 , 8 | |
7 , 15 | |
7 , 22 | |
7 , 29 | |
7 , 36 | |
7 , 43 | |
8 , 1 | |
8 , 9 | |
8 , 17 | |
8 , 25 | |
8 , 33 | |
8 , 41 | |
8 , 49 | |
8 , 57 | |
9 , 1 | |
9 , 10 | |
9 , 19 | |
9 , 28 | |
9 , 37 | |
9 , 46 | |
9 , 55 | |
9 , 64 | |
9 , 73 |
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
class testloop | |
{ | |
method public static void main(java.lang.String[]) | |
max_stack 15 | |
max_locals 15 | |
{ | |
sipush 5 | |
sipush 3 | |
imul | |
sipush 2 | |
iadd | |
istore 2 | |
sipush 1 | |
istore 0 | |
Lbegin0: | |
iload 0 | |
iload 2 | |
isub | |
ifle Ltrue0 | |
iconst_0 | |
goto Lfalse0 | |
Ltrue0: | |
iconst_1 | |
Lfalse0: | |
ifeq Lexit0 | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 0 | |
invokevirtual void java.io.PrintStream.println(int) | |
sipush 1 | |
iload 0 | |
iadd | |
istore 0 | |
goto Lbegin0 | |
Lexit0: | |
sipush 1 | |
istore 0 | |
Lbegin1: | |
iload 0 | |
sipush 9 | |
isub | |
ifle Ltrue1 | |
iconst_0 | |
goto Lfalse1 | |
Ltrue1: | |
iconst_1 | |
Lfalse1: | |
ifeq Lexit1 | |
sipush 1 | |
istore 1 | |
Lbegin2: | |
iload 1 | |
sipush 9 | |
isub | |
ifle Ltrue2 | |
iconst_0 | |
goto Lfalse2 | |
Ltrue2: | |
iconst_1 | |
Lfalse2: | |
ifeq Lexit2 | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 0 | |
invokevirtual void java.io.PrintStream.print(int) | |
getstatic java.io.PrintStream java.lang.System.out | |
ldc " * " | |
invokevirtual void java.io.PrintStream.print(java.lang.String) | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 1 | |
invokevirtual void java.io.PrintStream.print(int) | |
getstatic java.io.PrintStream java.lang.System.out | |
ldc " = " | |
invokevirtual void java.io.PrintStream.print(java.lang.String) | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 0 | |
iload 1 | |
imul | |
invokevirtual void java.io.PrintStream.println(int) | |
sipush 1 | |
iload 1 | |
iadd | |
istore 1 | |
goto Lbegin2 | |
Lexit2: | |
sipush 1 | |
iload 0 | |
iadd | |
istore 0 | |
goto Lbegin1 | |
Lexit1: | |
sipush 1 | |
istore 0 | |
Lbegin3: | |
iload 0 | |
sipush 9 | |
isub | |
ifle Ltrue3 | |
iconst_0 | |
goto Lfalse3 | |
Ltrue3: | |
iconst_1 | |
Lfalse3: | |
ifeq Lexit3 | |
sipush 1 | |
istore 1 | |
Lbegin4: | |
iload 1 | |
iload 0 | |
iload 0 | |
imul | |
isub | |
ifle Ltrue4 | |
iconst_0 | |
goto Lfalse4 | |
Ltrue4: | |
iconst_1 | |
Lfalse4: | |
ifeq Lexit4 | |
iload 0 | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 0 | |
invokevirtual void java.io.PrintStream.print(int) | |
getstatic java.io.PrintStream java.lang.System.out | |
ldc " , " | |
invokevirtual void java.io.PrintStream.print(java.lang.String) | |
getstatic java.io.PrintStream java.lang.System.out | |
iload 1 | |
invokevirtual void java.io.PrintStream.println(int) | |
iload 1 | |
iadd | |
istore 1 | |
goto Lbegin4 | |
Lexit4: | |
sipush 1 | |
iload 0 | |
iadd | |
istore 0 | |
goto Lbegin3 | |
Lexit3: | |
return | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment