In this repository are located solutions to tasks written in the Java programming language to work with String type.
Names of packages with classes that solve a task have a brief description of the task to be solved. The description of the tasks to be solved can be read in the comments in the Main class, which is in each package with the tasks to be solved. Also in the file README.md.
Many of functional solutions are implemented in the java-helper library classes. A detailed description of the functional contained in the library "java-helper" and used for solving tasks can be found in the repository by the link: https://github.com/LugowoyKonstantin/java-helper.tasks-solution
If you have any questions about this repository or the solution of the tasks in it, you can contact the following contacts:
email: kostya.lugowoy@gmail.com
skype: Lugowoy Konstantin
linkedin: Konstantin Lugowoy
facebook: Konstantin Lugowoy
The package name and description of the solved task that are contained in the root package com.lugowoy.tasks :
defineStringConsistingOnlyOfDifferentCharacters
- Define a string consisting only of different characters. If there are several such lines, determine the first one.
determineNumbersOfStringsContainingOnlyLatinCharacters
- Determine the number of words containing only Latin characters.
determinePalindromeString
- Determine a palindrome string. If there are more than one such lines, determine the second one.
determineStringInWhichNumberOfDifferentSymbolsIsMinimum
- Determine the string in which the number of different characters minimum. If there are several such string, find the first one.
determineStringsInWhichCharactersGoInOrderOfIncreasingTheirCodes
- Define a string, the characters in which are in the strict order of increasing their codes. If there are several such strings, find the first one.
determineStringsWithEqualNumberOfVowelsAndConsonants
- Determine strings with an equal number of vowels and consonants.
printLongestString
- Enter n strings. Find the longest string. Print the string and its length.
printShortestString
- Enter n strings. Find the shortest string. Print the string and its length.
printStringsInAscendingOrderOfLength
- Sort and print the strings in ascending order of their lengths.
printStringsInDescendingOrderOfLength
- Sort and print the strings in descending order of their lengths.
printStringsWhoseLengthIsGreaterThanAverage
- Print strings whose length is greater than the average of the arithmetic length.
printStringsWhoseLengthIsLessThanAverage
- Print strings whose length is less than the average of the arithmetic length.