标签:ringbuf ati highlight ring insert string amp har nbsp
// 十进制转换二进制 private static String convertBinary(int sum) { StringBuffer binary = new StringBuffer(); while (sum != 0 && sum != 1) { binary.insert(0, sum % 2); sum = sum / 2; if (sum == 0 || sum == 1) { binary.insert(0, sum % 2); } } return binary.toString(); }
标签:ringbuf ati highlight ring insert string amp har nbsp
原文地址:http://www.cnblogs.com/apanda009/p/7965375.html