How to convert binary, OCT, HEX to calculate in Java?

Posted by user316751 on Stack Overflow See other posts from Stack Overflow or by user316751
Published on 2010-04-14T17:12:12Z Indexed on 2010/04/14 17:23 UTC
Read the original article Hit count: 291

Filed under:
|

Write an application that inputs one number consisting of FIVE digits from the user, separates the number into its individual digits and prints the digits separated from one another by three spaces each. For example, if the user types in the number 12345, the program should print

1   2   3   4   5

The following screen dump of result is for your reference.

Input a digit: 12345
Digits in 12345 = 1 2 3 4 5

How to convert binary, OCT, HEX to calculate the question?

© Stack Overflow or respective owner

Related posts about java

Related posts about homework