Guest User

Untitled

a guest
May 24th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. public class Bear{
  2. boolean mother;
  3. boolean cubs;
  4.  
  5. public void ismother(){
  6. boolean mother;
  7. }//end of method 1
  8. public void hascubs(){
  9. boolean cubs;
  10. }//end of method 2
  11.  
  12. }//end of class
  13.  
  14. public class Walk{
  15. public static void main(String[] args){
  16. System.out.println("Walking in the Woods!.... we heard a noise");
  17. if (ismother()) {
  18. System.out.println("Oh look a mom bear!");
  19. }//end of if
  20. else if (hascubs()){
  21. System.out.println("hey look there are cubs withe the mom!");
  22. }//end of main
  23. else if ((hascubs()) && (ismosther())){
  24. System.out.println("Oh fuck RUN MOFO RUN!!!");
  25. }//end of else if
  26. else {
  27. System.out.println("Ah nice day ... woods feel lonely!");
  28. }//end of else
  29. }//end of main
  30. }//end of class
Add Comment
Please, Sign In to add comment