|
|
@ -192,7 +192,9 @@ public class Games { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the same publishers across Europe, Japan and North America |
|
|
|
* Checks if the game has the same publishers across Europe, Japan and North |
|
|
|
* America |
|
|
|
* |
|
|
|
* @return Prints the games, that have the same publishers. |
|
|
|
*/ |
|
|
|
public String checkAllSamePublishers() { |
|
|
@ -228,7 +230,9 @@ public class Games { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has not the same publishers across Europe, Japan and North America |
|
|
|
* Checks if the game has not the same publishers across Europe, Japan and North |
|
|
|
* America |
|
|
|
* |
|
|
|
* @return Prints the games, that do not have the same publishers. |
|
|
|
*/ |
|
|
|
public String checkAllDifferentPublishers() { |
|
|
@ -263,6 +267,11 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the developers and the publishers are all the same. |
|
|
|
* |
|
|
|
* @return Prints the games, where publishers and developers are the same. |
|
|
|
*/ |
|
|
|
public String checkAllDifferentPublishersDeveloper() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Developer, Game_Publisher_EU, Game_Publisher_JP, Game_Publisher_NA FROM Games"; |
|
|
@ -663,6 +672,12 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the developer of the game is Atlus. |
|
|
|
* |
|
|
|
* @return Prints the games developed by Atlus. |
|
|
|
*/ |
|
|
|
|
|
|
|
public String checkDeveloperAtlus() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Name, Game_Developer FROM Games"; |
|
|
@ -693,6 +708,12 @@ public class Games { |
|
|
|
return result.substring(0, result.length() - 2); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the developers that are available in the table. |
|
|
|
* |
|
|
|
* @return Prints the developers from the table. |
|
|
|
*/ |
|
|
|
|
|
|
|
public String checkDevelopers() { |
|
|
|
String result = ""; |
|
|
|
String query = "SELECT Game_Developer FROM Games"; |
|
|
@ -737,7 +758,9 @@ public class Games { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the publisher Nintendo across Europe, Japan and North America |
|
|
|
* Checks if the game has the publisher Nintendo across Europe, Japan and North |
|
|
|
* America |
|
|
|
* |
|
|
|
* @return Prints the games, that have Nintendo as a publisher. |
|
|
|
*/ |
|
|
|
public String checkPublisherNintendo() { |
|
|
@ -774,7 +797,9 @@ public class Games { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks if the game has the publisher Sega across Europe, Japan and North America |
|
|
|
* Checks if the game has the publisher Sega across Europe, Japan and North |
|
|
|
* America |
|
|
|
* |
|
|
|
* @return Prints the games, that have Sega as a publisher. |
|
|
|
*/ |
|
|
|
public String checkPublisherSega() { |
|
|
@ -811,7 +836,9 @@ public class Games { |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Europe, Japan and North America |
|
|
|
* Checks the publishers that are available in the table across Europe, Japan |
|
|
|
* and North America |
|
|
|
* |
|
|
|
* @return Prints the publishers from Europe, Japan and North America. |
|
|
|
*/ |
|
|
|
public String checkPublishers() { |
|
|
@ -995,6 +1022,7 @@ public class Games { |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Europe |
|
|
|
* |
|
|
|
* @return Prints the publishers from Europe. |
|
|
|
*/ |
|
|
|
public String checkPublishersEu() { |
|
|
@ -1042,6 +1070,7 @@ public class Games { |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across Japan |
|
|
|
* |
|
|
|
* @return Prints the publishers from Japan. |
|
|
|
*/ |
|
|
|
public String checkPublishersJp() { |
|
|
@ -1095,6 +1124,7 @@ public class Games { |
|
|
|
|
|
|
|
/** |
|
|
|
* Checks the publishers that are available in the table across North America |
|
|
|
* |
|
|
|
* @return Prints the publishers from North America. |
|
|
|
*/ |
|
|
|
public String checkPublishersNa() { |
|
|
|