Eclipse不能将unicode编码转换成gbk等编码?
public class Demo {
public static void main(String[] args) {
// 测试c的值
int c = 10;
c = method(10, 0);
System.out.println("c = " + c); // 20
}
public static int method(int a, int b) {
int c = 10;
try {
//可能出现异常
System.out.println(a / b);
} catch (ArithmeticException e) {
//打印异常信息
e.printStackTrace();
return c = 20;
} finally {
c = 30;
return c;
}
}
}