added basic services

This commit is contained in:
Mehul Ahal 2023-01-10 20:37:33 +01:00 committed by LahaLuhem
parent b7cac335ec
commit 7053085344
4 changed files with 17 additions and 3 deletions

View 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");
}

View 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: ";
}

View file

@ -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.