diff --git a/src/constants/ConstFormatters.java b/src/constants/ConstFormatters.java new file mode 100644 index 0000000..9b2dddd --- /dev/null +++ b/src/constants/ConstFormatters.java @@ -0,0 +1,7 @@ +package constants; + +import java.text.SimpleDateFormat; + +public class ConstFormatters{ + final public static SimpleDateFormat APPLICATION_DATE_FORMATTER = new SimpleDateFormat("dd-MM-yyyy"); +} diff --git a/src/constants/ConstValues.java b/src/constants/ConstValues.java new file mode 100644 index 0000000..24d4cbd --- /dev/null +++ b/src/constants/ConstValues.java @@ -0,0 +1,7 @@ +package constants; + +public class ConstValues { + //I + final public static String inputCountryName = "Enter country: "; + final public static String inputDate = "Enter date: "; +} diff --git a/src/services/AppConfigService.java b/src/services/AppConfigService.java index 8273b1e..5d65635 100644 --- a/src/services/AppConfigService.java +++ b/src/services/AppConfigService.java @@ -12,8 +12,8 @@ import java.util.Scanner; * Prompts and stores the configuration that the app needs to be run with. */ public class AppConfigService { - public String countryName; - public Date date; + String countryName; + Date date; /** * Prompts the user to input the country name and date, and stores the input. diff --git a/src/services/DatabaseService.java b/src/services/DatabaseService.java index 0d35d10..44726b3 100644 --- a/src/services/DatabaseService.java +++ b/src/services/DatabaseService.java @@ -60,4 +60,4 @@ public class DatabaseService { return connection; } -} \ No newline at end of file +}