Guest User

Untitled

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