Welcome to the CSC Q&A, on our server named in honor of Ada Lovelace. Write great code! Get help and give help!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+10 votes

All the resources I could find where to implement a search function using SQL and none to do with searching through files on the desktop. Any help with this would be very helpful.

asked in CSC305 Fall 2023 by (1 point)

2 Answers

+2 votes

You cannot necessarily search through the files. However, we have the DEMO1.csv files which lists the metadata for each card created. You could implement a functionality that searches through the card's metadata and returns the appropriate card(s).

answered by (2.1k points)
+2 votes

The simplest approach is to create a new type (class) of Java object that represents each row in the spreadsheet, and then have a list of those objects. You would need to write your own code to search/filter/rank that list according to the attributes of that object.

answered by (508 points)
...