-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSearchInput2.java
More file actions
35 lines (30 loc) · 1.31 KB
/
SearchInput2.java
File metadata and controls
35 lines (30 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//Filename: SearchInput2.java
//Authors: Alex Bangu, Costa Giannaras, Humza Chaudhry
//Date: April 29, 2023
//Description: Gets the keyboard input of the value to be searched and deleted. It calls the search method
//from the Search2.class.
import java.io.*;
/** Gets the keyboard input of the value to be searched and deleted. It calls the search method
*from the Search2.class.
*@author Alex Bangu, Costa Giannaras, Humza Chaudhry */
class SearchInput2{//Prepare keyboard to recieve data
/**Gets the keyboard input for the value to be deleted and searched.
/** Construct a new keyinput.
* @param fileName The external file which the search will happen in.
* @param Data[][] The two-dimensional array where the item values are.
* @param searched The item you want to search for.
* @param item The array index of the item you want to search for.
*/
public String[][] keyInput (String fileName, String data[][], String searched, int item) {
String searchResult[][] = new String[1][7];
String searchedItem = searched;
String input;
Search2 s = new Search2();
input = searchedItem;
if (input != null)
{
s.searching(fileName, data, item, input);
}
return(searchResult);
}// End keyInput
}//end searchinput