JAVA5 学习(3)[2]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

e>

    ProgramFlags(int bitNumber)
    {
        bit = bitNumber;
    }
    public int getBitNumber()
    {
        return(bit);
    }
}
public class EnumBitmapExample {
    public static void main(String args[])
    {
        ProgramFlags flag = ProgramFlags.showErrors;
        System.out.println("Flag selected is: " +
                                flag.ordinal() +
                           " which is " +
                                flag.name());
    }
}
本文关键:JAVA5 学习(3)
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top