java 编写一个程序,提示用户输入0~15之间的一个整数,显示其对应的十六进制数
java 编写一个程序,提示用户输入0~15之间的一个整数,显示其对应的十六进制数
日期:2017-09-30 21:28:08 人气:1
import java.util.Scanner;public class TestDemo { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ String str = sc.nextLine(); String result = getResult(str); System.o