Answered step by step
Verified Expert Solution
Question
1 Approved Answer
import osu.cse 3 2 4 1 . utilities.Utilities;F import osu.cse 3 2 4 1 . sql . SQL; import osu.cse 3 2 4 1 .
import osu.cseutilities.Utilities;F import osu.csesqlSQL; import osu.cseGRS; public class ViewArtistTrack private static Set MENUOPTIONS new HashSetArraysasListx; public static void menuScanner cin Utilities.printDivider; System.out.printVIEW ALL: Artists Tracks "Input numerical selection or x to quit: ; String input cin.nextLine; char selection input.isEmpty input.charAt : ; whileMENUOPTIONS.containsselection System.out.printIncorrect option specified! Try again: ; input cin.nextLine; selection input.isEmpty input.charAt : ; switchselection case : viewArtists; break; case : viewTracks; break; default: break; PART : Remove the placeholder method and complete one of the following methods: viewTracks viewArtists Query all tracks contained in database. private static void viewTracks Utilities.placeholder; TODO String sql null; SQLsqlQueryGRSconn, sql; Query all artists contained in database. private static void viewArtists Utilities.placeholder; TODO String sql null; SQLsqlQueryGRSconn, sql; Fill in the TODO
import osu.cseutilities.Utilities;F
import osu.csesqlSQL;
import osu.cseGRS;
public class ViewArtistTrack
private static Set MENUOPTIONS new HashSetArraysasListx;
public static void menuScanner cin
Utilities.printDivider;
System.out.printVIEW ALL:
Artists
Tracks
"Input numerical selection or x to quit: ;
String input cin.nextLine;
char selection input.isEmpty input.charAt : ;
whileMENUOPTIONS.containsselection
System.out.printIncorrect option specified! Try again: ;
input cin.nextLine;
selection input.isEmpty input.charAt : ;
switchselection
case :
viewArtists;
break;
case :
viewTracks;
break;
default:
break;
PART :
Remove the placeholder method and complete one of the following methods:
viewTracks
viewArtists
Query all tracks contained in database.
private static void viewTracks
Utilities.placeholder;
TODO
String sql null;
SQLsqlQueryGRSconn, sql;
Query all artists contained in database.
private static void viewArtists
Utilities.placeholder;
TODO
String sql null;
SQLsqlQueryGRSconn, sql;
Fill in the TODO
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started