以下程序的输出是什么?5.3f 和 5.3 有什么区别?
public class DemoOnFloat
{
public static void main(String[] args)
float fl = 5.3f;
if (fl == 5.3)
System.out.println("Both are equal");
else
System.out.println("Both are not equal");
}
慕雪6442864
相关分类