***Please upvote if you liked the answer***
PickYourSearch.java
import java.io.File;
import java.util.Scanner;
public class PickYourSearch {
public static void main(String[] args) {
Scanner s = new
Scanner(System.in);
int choice;
System.out.println("Please select
from below:");
System.out.println("1.Linear
Search");
System.out.println("2.Binary
Search");
choice = s.nextInt();
while(choice != 1 && choice
!= 2)
{
System.out.println("Your selection: " + choice);
System.out.println("Please select between option 1 or 2");
choice =
s.nextInt();
}
System.out.println("Your selection:
" + choice);
System.out.println("Please enter
the input file to search: ");
String fileName = s.next();
System.out.println("Please enter
the string to be searched in " + fileName + ": ");
String text = s.next();
System.out.println("Search
functionality is under maintenance. Thank you for using my search
program.");
s.close();
}
//These are the method stubs
public static boolean linearSearch(File f,String
search_str) {
return false;
}
public static boolean binarySearch(File f,String
search_str) {
return false;
}
}
The screenshot of the code is attached below:-


The output is shown below :-
Output 1

Output 2

Write a java program that presents the user with the following menu Linear Search Binary Search...