Practice using StringTokenizer and String.replace - 1

"Not so fast. Do a couple of tasks, and then you'll have mastered it."

12
Task
Java Multithreading, level 2, lesson 13
Locked
StringTokenizer
Using a StringTokenizer, split the query into parts using the String delimiter. For example, getTokens("level22.lesson13.task01", ".") returns a string array {"level22", "lesson13", "task01"}
12
Task
Java Multithreading, level 2, lesson 13
Locked
Changing the encoding
The first parameter of the main method is the name of a file encoded in Windows-1251. The second parameter of the main method is the name of a file to which you need to write the contents of the first file, but encoded in UTF-8.
24
Task
Java Multithreading, level 2, lesson 13
Locked
Phone number verification
The checkPhoneNumber method should check whether the phoneNumber argument is a valid phone number. Verification criteria: 1) if the number starts with '+', then it must contain 12 digits; 2) if the number starts with a digit or opening parenthesis, then it must contain 10 digits.