Maximum Bitwise AND pair ( X , Y ) from given range such that X and Y can be same | Java implementation to find the Maximum Bitwise AND pair ( X , Y ) from given range such that X and Y can be same ; Function to return the maximum bitwise AND ; Driver code
class GFG { static int maximumAND ( int L , int R ) { return R ; } public static void main ( String [ ] args ) { int l = 3 ; int r = 7 ; System . out . print ( maximumAND ( l , r ) ) ; } }