public class DataType2
{
public static void main(String args[])
{
final float PI = 3.14f;
System.out.println("PI = " + PI);
char c = 'a';
System.out.println("c = " + c);
int i = c;
System.out.println("i = " + i);
boolean b = true;
if (b)
{
System.out.println("b = " + b);
}
}
}
/*
输出结果:
PI = 3.14
c = a
i = 97
b = true
*/
DataType2
最新推荐文章于 2024-06-03 13:09:00 发布