"Hai, Diego. Awak tahu apa, saya telah memutuskan bahawa semua yang awak lakukan adalah untuk kebaikan saya sendiri."
"Terima kasih atas tugasan itu. Saya berbesar hati untuk melaksanakannya."
24
Tugasan
Java Multithreading, tahap, pelajaran
Terkunci
Inverted words
In the main method, read the name of a file that contains words separated by spaces from the console.
In the text of the file, find all pairs of words that are mirror images of each other. Add them to result.
Use StringBuilder.
The file encoding is UTF-8.
12
Tugasan
Java Multithreading, tahap, pelajaran
Terkunci
Build a WHERE query
Build part of a WHERE query using StringBuilder.
If a parameter is null, then it shouldn't be included in the query.
Example:
{name=Johnson, country=United States, city=Los Angeles, age=null}
Result:
name = 'Johnson' and country = 'United States' and city = 'Los Angeles'
24
Tugasan
Java Multithreading, tahap, pelajaran
Terkunci
Make a word chain
In the main method, read the name of a file that contains words separated by spaces from the console.
In the getLine method, use StringBuilder to order all the words as follows:
the last letter of a word must match the first letter of the next word (ignore case).
Each word should be used once.
0
Komen
Popular
Baru
Tua
Anda mesti log masuk untuk meninggalkan ulasan
Halaman ini tidak mempunyai sebarang ulasan lagi
Laman web ini menggunakan kuki untuk memberikan anda perkhidmatan yang diperibadikan. Dengan menggunakan laman web ini, anda bersetuju dengan penggunaan kuki kami. Jika anda memerlukan butiran lanjut, sila baca Terma dan Polisi kami.