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