Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; public class Main { public static ArrayList<String> formatDaysToTakeForObject(String string) { ArrayList<String> days = new ArrayList<>(); for (String s : string.split(" ")) { days.add(s); } return days; } }