![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具类
鲨鱼辣椒 H!
这个作者很懒,什么都没留下…
展开
-
JAVA实现二进制转八进制
public class BinaryToOctal { /** * Main method * * @param args Command line arguments */ public static void main(String args[]) { Scanner sc = new Scanner(System.in); System.out.println("Input the binary number: "); int b = sc.原创 2021-01-12 09:29:45 · 472 阅读 · 1 评论 -
JAVA实现二进制转十六进制
public class BinaryToHexadecimal { /** * This method converts a binary number to a hexadecimal number. * * @param binary The binary number * @return The hexadecimal number */ static String binToHex(int binary) { // hm to store hexad原创 2021-01-12 09:28:16 · 413 阅读 · 0 评论