Browse Source

Refactored Class and Test File

dev
Adem Berber 3 years ago
parent
commit
e8f46e214a
  1. 10
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Games.java

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

@ -34,8 +34,6 @@ public class Games {
while (resultSet.next()) {
String gameName = resultSet.getString("Game_Name");
result += gameName + ", ";
}
@ -687,8 +685,6 @@ public class Games {
boolean spikeChun = false;
boolean bandaiNamco = false;
boolean activision = false;
boolean whileSwitchOne = true;
boolean whileSwitchTwo = true;
try {
Connection connection = DriverManager.getConnection(databaseURL);
@ -701,8 +697,8 @@ public class Games {
String gamePublisherJp = resultSet.getString("Game_Publisher_JP");
String gamePublisherNa = resultSet.getString("Game_Publisher_NA");
while (whileSwitchOne) {
while (whileSwitchTwo) {
while (true) {
while (true) {
if (sega && gamePublisherEu.equals("Sega")) {
break;
} else if (atlus && gamePublisherEu.equals("Atlus")) {
@ -846,8 +842,6 @@ public class Games {
result += gamePublisherNa + ", ";
}
statement.close();
connection.close();

Loading…
Cancel
Save