Browse Source

Refactored Class and Test Class

dev
Adem Berber 3 years ago
parent
commit
6ca9001154
  1. 4
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

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

@ -365,7 +365,7 @@ public class Games {
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 + ", ";
} }
@ -397,7 +397,7 @@ public class Games {
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 + ", ";
} }

Loading…
Cancel
Save