For experienced developers they will seem trivial, but for those who are just starting to learn Java on their own, I hope they will be just right. Also, if you use any other tasks for learning, please share them. The problems are lined up in order of increasing difficulty. Each task also has several stages of "development", each of which is aimed at attracting new packages. Do my java homework, post as well, we'll help you with the whole forum.
Task: Analog to Sort
Write a console program that sorts the text given to it by the standard input alphabetically.
Options for complications:
- The program should ignore case when sorting.
- The program must sort not alphabetically, but by the number of characters in the string
- The program can receive as an argument the index number of the word in a string to sort by.
Task: Analog to grep
You need to implement a console program that filters the input stream of text information, and the output shows only those strings that contain the word passed to the input program as an argument.
Options for complication:
- The program must be case insensitive.
- More than one word can be passed as an argument
- A regular expression, not a word, can be passed as an argument