Guest User

Untitled

a guest
Mar 20th, 2016
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. import java.util.ArrayList;
  2. import java.util.List;
  3.  
  4. public class Feed {
  5.  
  6.     private String title;
  7.     private String description;
  8.     private String link;
  9.     private String author;
  10.  
  11.     public List<String> entries = new ArrayList<String>();
  12.  
  13.     public void setTitle(String title){
  14.         this.title=title;
  15.     }
  16.  
  17.     public void setDescription(String description){
  18.         this.description=description;
  19.     }
  20.  
  21.     public void setLink(String link){
  22.         this.link=link;
  23.     }
  24.  
  25.     public void setAuthor(String author){
  26.         this.author=author;
  27.     }
  28.  
  29.     public String toString(){
  30.         return title+"\n"+description+"\n"+author+"\n"+author+"\n";
  31.     }
  32. }
Add Comment
Please, Sign In to add comment