以下程序的输出是什么?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
随时随地看视频慕课网APP
相关分类