Binary Search Example
Files Names | Information |
---|---|
cities.txt | Contaning the infomation of city (its weight,its name and lastly its country) |
output.txt | Show the result of search process in terms of name of city, substring name of city and one character with being sensitive for lowercase and uppercase |
Main.java | Handle with all project files to run the program |
City.java | Defining it as a POJO |
BinarySearch.java | Implementing search algorithm for name of city, substring name of city and one character |
ProcessMethod.java | Managing all search algorithm via defined function |
ReadFile.java | Reading cities.txt and assign each variable to City Object |
ShowResult.java | Showing the search result |
WriteFile.java | Writing all the search result into the output.txt |