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.
|
||||
*/
|
||||
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.
|
||||
|
|
Loading…
Reference in a new issue