Skip to content

Instantly share code, notes, and snippets.

@peas
Created June 13, 2010 02:52
Show Gist options
  • Save peas/436287 to your computer and use it in GitHub Desktop.
Save peas/436287 to your computer and use it in GitHub Desktop.
0: ldc #2; //String
2: astore_1
3: iconst_0
4: istore_2
5: iload_2
6: sipush 30000
9: if_icmpge 37
12: new #3; //class java/lang/StringBuilder
15: dup
16: invokespecial #4; //Method java/lang/StringBuilder."<init>":()V
19: aload_1
20: invokevirtual #5; //Method java/lang/StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: iload_2
24: invokevirtual #6; //Method java/lang/StringBuilder.append:(I)Ljava/lang/StringBuilder;
27: invokevirtual #7; //Method java/lang/StringBuilder.toString:()Ljava/lang/String;
30: astore_1
31: iinc 2, 1
34: goto 5
37: getstatic #8; //Field java/lang/System.out:Ljava/io/PrintStream;
40: aload_1
41: invokevirtual #9; //Method java/lang/String.length:()I
44: invokevirtual #10; //Method java/io/PrintStream.println:(I)V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment