(java)十进制转十六进制调用函数算法

import java.util.Scanner;

public class Main {

    

    

    

        public static void main(String[] args) {  

            Scanner sc = new Scanner(System.in);  

            int n = sc.nextInt();  

           sc.close();  

            System.out.println(Integer.toHexString(n).toUpperCase());  

        }  

    

}

    原文作者:进制转换
    原文地址: https://blog.csdn.net/microopithecus/article/details/78862349
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞