Skip to content

OlBreeze/HW_Java_back

Repository files navigation

HW_Java_back

This set contains my solutions for Java backend homeworks

22_PrefixSuffix (Sets)

Write application PrefixSuffix

with interface

public interface IPrexixSuffixSearch  
{  
	void addWords(String[] words);                		//add Strings from array to your set  
	boolean containsWord(String word);            		//return true, if set contains this  
	StringString[] getWordsWithPrefix(String prefix);   	//return array of Strings, which start with the prefix  
	String[] getWordsWithSuffix(String suffix);   		//return array of Strings, which finish with the suffix  
}

//---------------

You must to write 2 implementation

  • for HashSet
  • for TreeSet

You will not have duplicate code in your implementations

22-1 tree-collections: Система подбора кандидатов Задача взята с ресурса:

https://github.com/netology-code/java-homeworks/tree/master/tree-collections/4.5.2

About

Homeworks for Java backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages