代码修改:
public class Test
{
public static void main(String[] args)
{
int a = 8;
int b;
int c;
if(a>10)
{
b=100;
System.out.println("b="+b);
}
else
{
b='A';
System.out.println("b="+(char)b);
}
if(a>5)
{
c=100;
System.out.println("c="+c);
}
else
{
c='C';
System.out.println("c="+(char)b);
}