how to translate number to binary java code example Example: int to binary java String binary = Integer.toBinaryString(num);