Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Bear{
- boolean mother;
- boolean cubs;
- }//end of class
- public class Walk{
- public static void main(String[] args){
- System.out.println("Walking in the Woods!.... we heard a noise");
- if (ismother()) {
- System.out.println("Oh look a mom bear!");
- }//end of if
- else if (hascubs()){
- System.out.println("hey look there are cubs withe the mom!");
- }//end of main
- else if ((hascubs()) && (ismosther())){
- System.out.println("Oh fuck RUN MOFO RUN!!!");
- }//end of else if
- else {
- System.out.println("Ah nice day ... woods feel lonely!");
- }//end of else
- }//end of main
- }//end of class
Add Comment
Please, Sign In to add comment