Write a program in which the user can:
You can solve this in a number of way; here's a way you make take to approach this problem.
A simple class that represents one video game. It only has the name of the game, and the console of the game
This class has an ArrayList which is populated by reading from a tab delimited file. The first item in the file is always the name and the second is always the console. This class also handles printing to files where the following parameters are passed:
Finally, this class has method that returns an ArrayList of video games based on a search criterion (name and console).
This is where the user inputs commands and sees the results. It also holds an array list of the results of the most recent search.
Enter 1 to load the videogame database
Enter 2 to search the database
Enter 3 to print current results
Enter 4 to print current results to file
Enter 0 to quit
1
Enter the file name: Collection.txt
Enter 1 to load the videogame database
Enter 2 to search the database
Enter 3 to print current results
Enter 4 to print current results to file
Enter 0 to quit
2
Enter the name of the game or '*' for all names: super
Enter the name of the console or '*' for all consoles: nintendo
Enter 1 to load the videogame database
Enter 2 to search the database
Enter 3 to print current results
Enter 4 to print current results to file
Enter 0 to quit
3
Super Alfred Chicken Super Nintendo [NA]
"Super Aquatic Games Starring the Aquabats, The" Super Nintendo [NA]
Super Castlevania IV Super Nintendo [NA]
Super Dodge Ball Nintendo Entertainment System [US]
Super Empire Strikes Back Super Nintendo [NA]
Super Ghouls 'N Ghosts Super Nintendo [NA]
Super Glove Ball Nintendo Entertainment System [US]
Super Mario All-Stars Super Nintendo [NA]
Super Mario Bros. (5 Screw Cartridge) Nintendo Entertainment System [US]
Super Mario Bros. / Duck Hunt (No Nintendo Seal of Quality) Nintendo Entertainment System [US]
Super Mario Bros. 2 (No Nintendo Seal of Quality) Nintendo Entertainment System [US]
Super Mario Bros. 3 (Bros. above Mario's Head) Nintendo Entertainment System [US]
Super Mario Kart Super Nintendo [NA]
Super Mario World Super Nintendo [NA]
Super Mario World 2: Yoshi's Island Super Nintendo [NA]
Super Metroid Super Nintendo [NA]
Super Noah's Ark 3D Super Nintendo [NA]
Super Pitfall (3 Screw Cartridge) Nintendo Entertainment System [US]
Super Punch-Out!! Super Nintendo [NA]
Super Scope 6 Super Nintendo [NA]
Super Spike V'Ball / Nintendo World Cup Nintendo Entertainment System [US]
Super Star Wars (JVC) Super Nintendo [NA]
Super Star Wars: Return of the Jedi (JVC) Super Nintendo [EU]
Super Street Fighter II Super Nintendo [NA]
Super Team Games Nintendo Entertainment System [US]
Super Tennis Super Nintendo [NA]
Enter 1 to load the videogame database
Enter 2 to search the database
Enter 3 to print current results
Enter 4 to print current results to file
Enter 0 to quit
4
Enter the file name to print out: superGames.txt
Append to file (true/false): false
Enter 1 to load the videogame database
Enter 2 to search the database
Enter 3 to print current results
Enter 4 to print current results to file
Enter 0 to quit
0
Goodbye
Submit the files to the dropbox