CodeGym/Curs Java/Java Multithreading/Exersați să găsiți și să regăsiți subșiruri

Exersați să găsiți și să regăsiți subșiruri

Disponibil
Exersați găsirea și preluarea subșirurilor - 1

"Bună, Amigo!"

"Nu o sa crezi. Tocmai am terminat toate sarcinile pentru tine!"

"Dulce! Mulțumesc, Diego."

"Dar nu am de gând să ți le dau. Așa că, le faci - te va face mai inteligent:"

24
Sarcină
Java Multithreading,  nivellecţie
Blocat
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
Sarcină
Java Multithreading,  nivellecţie
Blocat
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
Sarcină
Java Multithreading,  nivellecţie
Blocat
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.
Comentarii
  • Popular
  • Nou
  • Vechi
Trebuie să fii conectat pentru a lăsa un comentariu
Această pagină nu are încă niciun comentariu