daily pastebin goal
16%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Agenda{
  2.  
  3.    private ArrayList<Task> tasks = new ArrayList<Task>();
  4.  
  5.  
  6.    public void addTask(String name, int priority, String description){
  7.       Task t = new Task(name, priority, description);
  8.       tasks.add(t);
  9.    }
  10.    
  11.    ....
  12. }
  13.  
  14. public class Task{
  15.  
  16.   private String name;
  17.   private int priority;
  18.   String description;
  19.  
  20.   public Task(String name, int priority, String description){
  21.     this.name = name;
  22.     this.priority = priority;
  23.     this.description = description;
  24.   }
  25.  
  26.   ...
  27. }
  28.  
  29. ....
RAW Paste Data
Top