@@ -0,0 +1,652 @@
+package com.hackerrank.contests.daysOfCode_30;%0A%0Aimport java.util.Scanner;%0A%0Apublic class Day10_BinaryNumbers %7B%0A%09%0A%09public static String decimalToBinary(int number) %7B%0A%09%09if (number == 0) %7B%0A%09%09%09return %220%22;%0A%09%09%7D%0A%09%09String binary = %22%22;%0A%09%09while (number %3E 0) %7B%0A%09%09%09int remainder = number %25 2;%0A%09%09%09binary = remainder + binary;%0A%09%09%09number = number / 2;%0A%09%09%7D%0A%09%09return binary;%0A%09%7D%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09%0A%09%09@SuppressWarnings(%22resource%22)%0A%09%09Scanner scanner = new Scanner(System.in);%0A%09%09int T = scanner.nextInt();%0A%09%09while (T-- %3E 0) %7B%0A%09%09%09int n = scanner.nextInt();%0A%09%09%09System.out.println(decimalToBinary(n));%0A%09%09%7D%0A%0A%09%7D%0A%0A%7D%0A

Create Day10_BinaryNumbers.java