"안녕, 아미고!"
"당신은 그것을 믿지 않을 것입니다. 나는 당신을 위해 모든 작업을 완료했습니다!"
"달콤해! 고마워, 디에고."
"하지만 나는 그것들을 너에게 주지 않을거야. 그러니 네가 그것들을 해라-그것은 너를 더 똑똑하게 만들거야:"
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.