|
|
@ -249,7 +249,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkGameGenres() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Genre FROM Games"; |
|
|
@ -292,7 +292,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkGameGenreActionAdventure() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Genre FROM Games"; |
|
|
@ -321,7 +321,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkGameGenreRPG() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Genre FROM Games"; |
|
|
@ -350,7 +350,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkConsolePlayStation() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Console FROM Games"; |
|
|
@ -364,14 +364,14 @@ public class Games { |
|
|
|
while (resultSet.next()) { |
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
|
|
|
|
|
if (gameConsole.length() > 11) { |
|
|
|
|
|
|
|
if (gameConsole.length() >= 11) { |
|
|
|
if (gameConsole.substring(0, 11).equals("PlayStation")) { |
|
|
|
result += gameName + ", "; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
@ -382,7 +382,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkConsoleNintendo() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Console FROM Games"; |
|
|
@ -396,14 +396,14 @@ public class Games { |
|
|
|
while (resultSet.next()) { |
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
|
|
|
|
|
if (gameConsole.length() > 8) { |
|
|
|
|
|
|
|
if (gameConsole.length() >= 8) { |
|
|
|
if (gameConsole.substring(0, 8).equals("Nintendo")) { |
|
|
|
result += gameName + ", "; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
@ -414,7 +414,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkConsoleXbox() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Console FROM Games"; |
|
|
@ -428,14 +428,14 @@ public class Games { |
|
|
|
while (resultSet.next()) { |
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
|
|
|
|
|
|
|
|
|
if (gameConsole.length() >= 4) { |
|
|
|
if (gameConsole.substring(0, 4).equals("Xbox")) { |
|
|
|
result += gameName + ", "; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
@ -446,7 +446,7 @@ public class Games { |
|
|
|
|
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public String checkConsoleMultiplatform() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Console FROM Games"; |
|
|
@ -460,14 +460,14 @@ public class Games { |
|
|
|
while (resultSet.next()) { |
|
|
|
String gameName = resultSet.getString("Game_Name"); |
|
|
|
String gameConsole = resultSet.getString("Game_Console"); |
|
|
|
|
|
|
|
|
|
|
|
if (gameConsole.length() >= 13) { |
|
|
|
if (gameConsole.substring(0, 13).equals("Multiplatform")) { |
|
|
|
result += gameName + ", "; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
statement.close(); |
|
|
|
connection.close(); |
|
|
|