⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bitwisedemo.java

📁 C:Documents and Settings ew桌面新建文件夹arithmet.rar
💻 JAVA
字号:
public class BitwiseDemo {    static final int VISIBLE = 1;    static final int DRAGGABLE = 2;    static final int SELECTABLE = 4;    static final int EDITABLE = 8;    public static void main(String[] args)    {        int flags = 0;        flags = flags | VISIBLE;        flags = flags | DRAGGABLE;        if ((flags & VISIBLE) == VISIBLE) {            if ((flags & DRAGGABLE) == DRAGGABLE) {                 System.out.println("Flags are Visible and Draggable.");            }        }        flags = flags | EDITABLE;        if ((flags & EDITABLE) == EDITABLE) {	    System.out.println("Flags are now also Editable.");        }    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -