📜  java long literal - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:38.783000             🧑  作者: Mango

代码示例1
public class Test {
    public static void main(String[] args)
    {
        float a = 101.230; // decimal-form literal
        float b = 0123.222; // It also acts as decimal literal
        float c = 0x123.222; // Hexa-decimal form
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
    }
}