/**
* If there are no tasks in the database, populate it with some hard-coded tasks.
*/
public static void populateIfEmpty()
{
TaskStorage taskStorage = StorageFactory.getTaskStorage();
if (taskStorage.isEmpty())
{
taskStorage.save(new Task("Buy some milk", Task.Priority.Medium, new String[] {"errand"}));
taskStorage.save(new Task("Grow a beard", Task.Priority.Low, null));
taskStorage.save(new Task("Check the post box", Task.Priority.High, new String[] {"errand", "weekly"}));
taskStorage.save(new Task("Play tennis", Task.Priority.Low, new String[] {"exercise"}, true));
taskStorage.save(new Task("Buy a cello bow", Task.Priority.Medium, new String[] {"online"}));
}
}