Advertisement
Guest User

Untitled

a guest
Jul 25th, 2016
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. package generics;
  2.  
  3. import java.util.List;
  4.  
  5. public class Box<T extends Bird> {
  6.  
  7. private List<T> birds;
  8.  
  9. public Box(){
  10.  
  11. }
  12.  
  13. public List<T> getBirds() {
  14. return birds;
  15. }
  16.  
  17. public void setBirds(List<T> birds) {
  18. this.birds = birds;
  19. }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement