From 62a52549c468261ffe7cd694bc38af6386946a04 Mon Sep 17 00:00:00 2001 From: Adem Berber Date: Tue, 15 Feb 2022 04:09:07 +0100 Subject: [PATCH] Added Javadoc to Game Genre Category Methods --- .../main/java/de/hs_fulda/ciip/projjpn/Games.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java index 6f9df1f..1dc1f93 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java +++ b/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";