18
Nhiệm vụ
Java Multithreading, mức độ, bài học
Numeral system converter
Implement the convertNumberToOtherNumberSystem method, which should convert number.getDigit()
from one number system (numberSystem) to another (expectedNumberSystem).
Throw a NumberFormatException if the passed number is invalid, e.g. the number "120" passed with the binary number system.
18
Nhiệm vụ
Java Multithreading, mức độ, bài học
Mastering the methods of the Integer class
Use the Integer.parseInt(String, int) method to implement the convertToDecimalSystem method,
which should convert the passed string into a decimal number and return it as a string.
18
Nhiệm vụ
Java Multithreading, mức độ, bài học
Palindrome?
Declare and implement the private static Set<Integer> getRadix(String number), getRadix(String number) method, which needs to determine the number systems (from 2 to 36 inclusive) in which the representation of number (passed in the decimal representation) is a palindrome.
18
Nhiệm vụ
Java Multithreading, mức độ, bài học
Smallest possible radix
The main method's first argument is a string that contains a sequence of characters (All characters in
the string have ASCII codes (32 to 127 inclusive). The string length does not exceed 255 characters.