18
టాస్క్
Java Multithreading, స్థాయి, పాఠం
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
టాస్క్
Java Multithreading, స్థాయి, పాఠం
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
టాస్క్
Java Multithreading, స్థాయి, పాఠం
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
టాస్క్
Java Multithreading, స్థాయి, పాఠం
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.