It is necessary to write two laboratory works in the Java programming language.
Tasks for the first laboratory work:
- Working with a dynamic array;
- Linked list;
- Create a class ListImpl that implements the List interface;
- In the main method of the ListImpl class, demonstrate the operation of all methods of the List interface.
- Create a class StreamImpl that implements the Stream interface.
Tasks for the second laboratory work:
- Create a class with static methods that transform input information into output; The input information has the following structure (the values of Login/Name/Email in general can be any; Login and Name can contain Latin and Cyrillic characters);
- Numbers L1 < L2 < ... < Ln form an ascending sequence of natural numbers, for example: 1 < 3 < 5 < 6 < 7. Write a convert method that takes text in the form of a string and a natural number k and returns: (a) words joined by a space, which have a length of Lk, if 1 <= k <= n; (b) an empty string if k > n. The result should not include duplicate words;
- Create a static convert method that transforms input into output. Input: strings with words separated by spaces. A word is considered a sequence containing only letters (all other characters do not belong to the word). Output: the input text, but the case of each even duplicate word is inverted;
- Implement a method that converts from the decimal numbering system to the Cyrillic numbering system.
- Implement a method that converts from the decimal numbering system to the Mayan numbering system.
- Implement a method that converts from the decimal numbering system to the Roman numbering system.
(Digits and their values in the decimal system are given in brackets).
- Implement a method that converts the number from the numbering system with base baseFrom to the numbering system with base baseTo.