Кто первый встал - того и тапки: 6 уровень, 13 лекция Java Core /
Who got up first - that and the slippers: level 6, lesson 13 JavaRush
Задание от JavaRush
Кто первый встал - того и тапки: 6 уровень, 13 лекция Java Core
Каждая нить должна читать с консоли строки. Реализуй логику метода run:
1. Пока нить не прервана (!isInterrupted) читай с консоли строки и добавляй их в поле List result.
2. Используй readStringCount для подсчета уже считанных с консоли строк (после каждого считывания увеличивать счетчик прочитанных строк readStringCount на 1).
The task from JavaRush
Who got up first - that and the slippers: level 6, lesson 13 Java Core
Each thread must read lines from the console. Implement the logic of the run method:
1. Until the thread is interrupted (! IsInterrupted), read the lines from the console and add them to the List result field.
2. Use readStringCount to count the lines already read from the console (after each read, increase the readStringCount by 1).
Java Developer
Android Studio
Язык программирования Джава
Андроид Студио
Repeat after me, then delete and write the code from memory. Create a new task and write the program yourself
Повтори за мной, затем удали и напиши код по памяти. Придумай новое задание и напиши программу самостоятельно
Thank you for watching
Спасибо за просмотр