Answers for "bitwise or java"

0

java

Java is a set of computer software and specifications developed by James
Gosling at Sun Microsystems, which was later acquired by the Oracle
Corporation, that provides a system for developing application software and
deploying it in a cross-platform computing environment.
Posted by: Guest on August-17-2020
2

using bitwise and in java

// Using bitwise AND
if((n&1)==0)
  System.out.println("n is even");
else
  System.out.println("n is odd");

// Using bitwise OR
if((n|1)>n)
  System.out.println("n is even");
else
  System.out.println("n is odd");
Posted by: Guest on December-31-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language