Write a code to convert a number to its binary representation.
Number: 10
String binary = Integer.toBinaryString(10);
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Write a code to convert a number to its binary representation.

### Response:
String binary = Integer.toBinaryString(10);