Browse Source

Added Javadoc to Game Genre Category Methods

dev
Adem Berber 2 years ago
parent
commit
62a52549c4
  1. 15
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

15
projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

@ -400,6 +400,11 @@ public class Games {
return result.substring(0, result.length() - 2);
}
/**
* Checks the game genres that are available in the table
*
* @return Prints all the available game genres from the table.
*/
public String checkGameGenres() {
String result = "";
String query = "SELECT Game_Genre FROM Games";
@ -443,6 +448,11 @@ public class Games {
return result.substring(0, result.length() - 2);
}
/**
* Checks if the games genre is Action-Adventure
*
* @return Prints all the Action-Adventure games.
*/
public String checkGameGenreActionAdventure() {
String result = "";
String query = "SELECT Game_Name, Game_Genre FROM Games";
@ -472,6 +482,11 @@ public class Games {
return result.substring(0, result.length() - 2);
}
/**
* Checks if the games genre is RPG
*
* @return Prints all the RPG games.
*/
public String checkGameGenreRPG() {
String result = "";
String query = "SELECT Game_Name, Game_Genre FROM Games";

Loading…
Cancel
Save