java convert an into to binary code example Example: int to binary java String binary = Integer.toBinaryString(num);