"आप विश्वास नहीं करेंगे। मैंने अभी-अभी आपके लिए सभी कार्य समाप्त किए हैं!"
"मीठा! धन्यवाद, डिएगो।"
"लेकिन मैं उन्हें आपको नहीं देने जा रहा हूं। इसलिए, आप उन्हें करें- यह आपको स्मार्ट बना देगा:"
24
टास्क
Java Multithreading, स्तर 2, सबक 5
लॉक
Threads of a string or stringy threads? That's the question
1. The getPartOfString method must return the substring between the first and the last tab characters.
2. The getPartOfString method should throw an exception if it receives invalid data:
a) StringForFirstThreadTooShortException if the thread's name is FIRST_THREAD_NAME.
24
टास्क
Java Multithreading, स्तर 2, सबक 5
लॉक
Find a substring
The getPartOfString method must return the substring that begins with the character after the first space and ends with the end of the word
that follows the 4th space.
Example: "CodeGym is the best place to learn Java."
Result: "is the best place"
Example: "Amigo and Diego are best friends!"
6
टास्क
Java Multithreading, स्तर 2, सबक 5
लॉक
Between tabs
The getPartOfString method must return the substring between the first and the second tab characters.
If the input data is invalid, throw a StringTooShortException.
Don't change the StringTooShortException class.
This website uses cookies to provide you with personalized service. By using this website, you agree to our use of cookies. If you require more details, please read our Terms and Policy.