Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- public class ToDos {
- public static void main(String[] args) {
- ArrayList<String> toDoList = new ArrayList<String>();
- String toDo1 = "Water plants";
- // Add more to-dos here:
- String toDo2 = "Empty dishwasher";
- String toDo3 = "Mow lawn";
- // Add to-dos to toDoList
- toDoList.add(toDo1);
- toDoList.add(toDo2);
- toDoList.add(toDo3);
- System.out.println(toDoList);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement