Check if two numbers are equal without using comparison operators | Java code to check if 2 numbers are same ; Finds if a and b are same ; Driver code
class GFG { static void areSame ( int a , int b ) { if ( ( a - b ) == 0 ) System . out . println ( " Same " ) ; else System . out . println ( " Not ▁ Same " ) ; } public static void main ( String args [ ] ) { areSame ( 10 , 20 ) ; } }