关于输出二,八,十六进制数的问题
我学习的时候遇到这样一道题,不知道怎样下手,请大家指点:
write an application that prints a table of the binary,octal,and the hexadecimal equivalents of the decimal numbers in the range 1 through 256.Place the results in a JTextArea with srolling functionality.Display the JTextArea in a message dialog.