Search text in multiple files in Eclipse

There are many times when a developer needs to search some text in the code. The developer may know the file name in which the text is to be searched or may need to search the text in the complete workspace. We will see a single way through which we can search the text in … Read more

Search files in Eclipse Workspace

Imagine you have been working on your Eclipse workspace for few months now. And you have created 20-30 projects in Eclipse having hundreds of files. Now you need to search for some file whose name you remember but do not know the location of the file in projects. Manually finding the file in all the … Read more

Binary Search in Java

Binary search is an optimized algorithm to perform searching operation. It follows Divide and Conquer approach for searching. Pre-condition of Binary search : To perform Binary search the array should be sorted in ascending or descending order. Logic of Binary Search Let us consider array is sorted in ascending order. Now we compare the element … Read more