/** * Check if someday is specified * * @param toEditTask the task to edit * @param someDayKeyWords the keywords for someday * @return if someday is specified */ private boolean isSomeDaySpecified(Task toEditTask, String[] someDayKeyWords) { boolean somedaySpecified; if (toEditTask.getDescription() != null) { if (StringHandler.containsWord(toEditTask.getDescription(), someDayKeyWords)) { somedaySpecified = true; } else somedaySpecified = false; } else { somedaySpecified = false; } return somedaySpecified; }