import java.util.ArrayList;
import java.util.List;
public class Test {
public static void main(String[] args) {
System.out.println(convert(32));
}
private static String convert(int m) {
List<Integer> list = new ArrayList<Integer>();
StringBuffer sb = new StringBuffer();
while (m / 2 != 0) {
list.add(m % 2);
m = m / 2;
}
list.add(m % 2);
for (int i = list.size() - 1; i >= 0; i--) {
sb.append(list.get(i));
}
return sb.toString();
}
}
100000