codegen: handle exceptions of a method
[mate.git] / tests / CharArray1.java
1 package tests;
2
3 public class CharArray1 {
4         static char[] foo() {
5                 char[] val = new char[10];
6                 for (int i = 0; i < 10; i++)
7                         val[i] = (char) (i + 0x30);
8                 return val;
9         }
10
11         public static void main(String []args) {
12                 char [] ar = foo();
13                 for (int i = 0; i < 10; i++)
14                         System.out.printf("%c", ar[i]);
15                 System.out.printf("\n");
16         }
17 }