CodeGym /Courses /Java Multithreading /Practice with numbering systems

Practice with numbering systems

Java Multithreading
Level 10 , Lesson 2
Available

"Hi, Amigo!"

18
Task
Java Multithreading, level 10, lesson 2
Locked
Numeral system converter
Numeral system converter
18
Task
Java Multithreading, level 10, lesson 2
Locked
Mastering the methods of the Integer class
Mastering the methods of the Integer class
18
Task
Java Multithreading, level 10, lesson 2
Locked
Palindrome?
Palindrome?
18
Task
Java Multithreading, level 10, lesson 2
Locked
Smallest possible radix
Smallest possible radix
Comments (4)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Senned Level 41, Azov, Russia
26 November 2019
Use only BigInteger(String val, int radix) for Numeral System Converter, there is not in conditions.
Seb Level 41, Crefeld, Germany
11 February 2020
Thanks for the hint.
BlueJavaBanana Level 37
28 November 2020
Also you don't need to check for a negative number - mine was failing erification until I took that out!
Justin Smith Level 41, Greenfield, USA, United States
17 July 2022
I can't believe how short the answer is (ignore CodeGym's "official" solution). Moral of this story: Any time you need to convert a whole number from one numeral system to another, send it through BigInteger!