|
class example1
{
public void xy (char x)
{
char i = x;
char y = (char) (i + 32);
boolean flag = i == 65;
System.out.println (flag);
System.out.println (y);
flag? i: (char) (i + 32);
System.out.println (i);
}
public static void main (String [] args)
{
example1 e = new example1 ();
e.xy ('A');
}
}
Error message:
example1.java:11: not a statement
flag? i: (char) (i + 32);
^
1 error |
|