src/main/java/zoot/tube/schedule/TaskIO.java
/**
     * Saves the given Task as a JSON file.
     *
     * @param task the Task to save.
     */
Saves the given Task as a JSON file.
@param task the Task to save.
Saves the given Task as a JSON file . @param task the Task to save .
public static void saveTask(Task task) {
        Gson gson = new GsonBuilder().create();
        String taskAsJson = gson.toJson(task);
        FileIO.saveToFile(
                String.format("%s%s%s", TaskIO.RESOURCES_TASKS, "/", task.getID()),
                taskAsJson
        );
    }
public static void saveTask ( Task task ) { Gson gson = new GsonBuilder ( ) . create ( ) ; String taskAsJson = gson . toJson ( task ) ; FileIO . saveToFile ( String . format ( "%s%s%s" , TaskIO . RESOURCES_TASKS , "/" , task . getID ( ) ) , taskAsJson ) ; }
Saves the given Task as a JSON file.
Saves the given Task as a JSON file .