added basic services
This commit is contained in:
parent
b7cac335ec
commit
7053085344
4 changed files with 17 additions and 3 deletions
7
src/constants/ConstFormatters.java
Normal file
7
src/constants/ConstFormatters.java
Normal file
|
@ -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");
|
||||||
|
}
|
7
src/constants/ConstValues.java
Normal file
7
src/constants/ConstValues.java
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
package constants;
|
||||||
|
|
||||||
|
public class ConstValues {
|
||||||
|
//I
|
||||||
|
final public static String inputCountryName = "Enter country: ";
|
||||||
|
final public static String inputDate = "Enter date: ";
|
||||||
|
}
|
|
@ -12,8 +12,8 @@ import java.util.Scanner;
|
||||||
* Prompts and stores the configuration that the app needs to be run with.
|
* Prompts and stores the configuration that the app needs to be run with.
|
||||||
*/
|
*/
|
||||||
public class AppConfigService {
|
public class AppConfigService {
|
||||||
public String countryName;
|
String countryName;
|
||||||
public Date date;
|
Date date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prompts the user to input the country name and date, and stores the input.
|
* Prompts the user to input the country name and date, and stores the input.
|
||||||
|
|
|
@ -60,4 +60,4 @@ public class DatabaseService {
|
||||||
|
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue