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.");

}
}
}

Home      |      About Us      |     Portfolio      |      Services      |      Courses      |     Career      |      Cost      |      Contact Us
Services
  SEO   
  Link Building
  Data Entry
  Web Design and development
  Web Application development
 

Graphic and multimedia

  E-Commerce Solutions
  Software development
  Web Marketing & Promoting
  Internet Marketing
  IT Outsourcing
  Multimedia/CD Presentation
  Synopsis Ideas
  Project Ideas
  Placement Papers
  Live Project Training
  Programming & Projects
  Faq
  Training @balujalabs
 
 
Method
 

To Demonstrate the use of static variables.

 

 

 

 

 

 

 

 

 

                                                                                                                                          

1

To Demonstrate the use of Arithmetic Operators.

2

To Demonstrate the use of Mod(%) Operator.

3 To Define three integers and use the Relational Operators.
4 To Demonstrate the use of Relational Operator
5

To Demonstrate the use of static variables.

6

To Demonstrate Ternary Operators.

7

To find whether the two strings are equal or not.

8

To calculate potential energy.

9

Print Fehrenheit to celsius table.