Самые - самые I Java Syntax: 7 уровень, 6 лекция ArrayList
Most - most I Java Syntax: level 7, lesson 6
Задание от JavaRush
Самые - самые I Java Syntax: 7 уровень, 6 лекция
1. Создай список строк.
2. Добавь в него 10 строчек с клавиатуры.
3. Узнай, какая строка в списке встретится раньше: самая короткая или самая длинная.
Если таких строк несколько, то должны быть учтены самые первые из них.
4. Выведи на экран строку из п.3. Должна быть выведена одна строка.
Требования:
Программа должна выводить на экран самую короткую строку, если она была раньше самой длинной.
Программа должна выводить на экран самую длинную строку, если она была раньше самой короткой.
Должна быть выведена только одна строка.
The task from JavaRush
Most - most I Java Syntax: level 7, lesson 6
1. Create a list of strings.
2. Add 10 lines from the keyboard to it.
3. Find out which line in the list occurs first: the shortest or the longest.
If there are several such lines, then the very first of them should be taken into account.
4. Display the line from item 3. One line should be output.
Requirements:
The program should display the shortest line if it was before the longest.
The program should display the longest line if it was earlier than the shortest.
Only one line should be displayed.
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
Спасибо за просмотр