Advertisement
Guest User

Untitled

a guest
Apr 27th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. public boolean ancestraisComuns(Burro burro, Burro burra){
  2. if(burro.getFather() != null || burro.getMother() != null){
  3. verificacao(burro,burra);
  4. }
  5. return ancestraisComuns(burro,burra);
  6.  
  7. }
  8.  
  9. public boolean verificacao(Burro burro, Burro burra){
  10. if(burro.getFather().equals(burra.getFather())
  11. || burro.getMother().equals(burra.getMother())) {
  12. return true;
  13. } else {
  14. return false;
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement